Reorder config and php-doc-block shortcut now works only on php-mode.

This commit is contained in:
kj 2022-05-07 14:21:20 -04:00
parent 87c61ac6e9
commit 97c7ea774b

View File

@ -12,10 +12,9 @@
(use-package php-mode (use-package php-mode
:defer t :defer t
:bind ("C-c d b" . php-doc-block) ;; :bind ("C-c d b" . php-doc-block)
:config :hook (php-mode . (lambda ()
(add-hook 'php-mode-hook #'(lambda() (local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock
(php-enable-default-coding-style)
(company-mode t) ; habilita company mode (company-mode t) ; habilita company mode
(ac-php-core-eldoc-setup) ; habilita soporte para ELDoc (ac-php-core-eldoc-setup) ; habilita soporte para ELDoc
(add-to-list 'company-backends 'company-ac-php-backend) ; Agregar ac-php para a company (add-to-list 'company-backends 'company-ac-php-backend) ; Agregar ac-php para a company