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