bind M-. to find symbol in php mode

This commit is contained in:
Łukasz Pankowski 2018-03-01 20:10:48 +01:00
parent 8de0ef34dd
commit 943d7e0f70

View File

@ -752,7 +752,8 @@ inserted between the braces between the braces."
(defun my-php-mode-hook-fn()
(when (require 'company-php nil t)
(set (make-local-variable 'company-backends) '(company-ac-php-backend))
(company-mode t)))
(company-mode t)
(local-set-key (kbd "M-.") #'ac-php-find-symbol-at-point)))
(add-hook 'php-mode-hook #'my-php-mode-hook-fn)