diff --git a/configs/lang-php.el b/configs/lang-php.el index 45f09f0..6f140e5 100644 --- a/configs/lang-php.el +++ b/configs/lang-php.el @@ -12,10 +12,19 @@ (use-package php-mode :defer t :straight t - :hook ((php-mode . (lambda () - (local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock - )) - ) + :bind ("C-c d b" . kj/php-doc-block) + :config + (defun kj/php-doc-block () + "Llama a \"php-dock-block\", sin conflicto con \"vs-comment-return-mode\"." + (interactive) + (if (bound-and-true-p vs-comment-return-mode) + (funcall (lambda() + (vs-comment-return-mode -1) + (php-doc-block) + (vs-comment-return-mode 1))) + (php-doc-block) + ) + ) ) (use-package php-doc-block