From 97c7ea774bc59441af0fbf6a7e361b66a38e4c2f Mon Sep 17 00:00:00 2001 From: kj Date: Sat, 7 May 2022 14:21:20 -0400 Subject: [PATCH] Reorder config and php-doc-block shortcut now works only on php-mode. --- configs/lang-php.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/configs/lang-php.el b/configs/lang-php.el index 1a51df1..6ac0d42 100644 --- a/configs/lang-php.el +++ b/configs/lang-php.el @@ -12,14 +12,13 @@ (use-package php-mode :defer t - :bind ("C-c d b" . php-doc-block) - :config - (add-hook 'php-mode-hook #'(lambda() - (php-enable-default-coding-style) - (company-mode t) ; habilita company mode - (ac-php-core-eldoc-setup) ; habilita soporte para ELDoc - (add-to-list 'company-backends 'company-ac-php-backend) ; Agregar ac-php para a company - )) + ;; :bind ("C-c d b" . php-doc-block) + :hook (php-mode . (lambda () + (local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock + (company-mode t) ; habilita company mode + (ac-php-core-eldoc-setup) ; habilita soporte para ELDoc + (add-to-list 'company-backends 'company-ac-php-backend) ; Agregar ac-php para a company + )) ) (use-package php-doc-block