From 943d7e0f70127d48840bc89aa76feaccc6e6a1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Thu, 1 Mar 2018 20:10:48 +0100 Subject: [PATCH] bind M-. to find symbol in php mode --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 9dc318e..c518d6a 100644 --- a/init.el +++ b/init.el @@ -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)