Replace php-mode with php-ts-mode.

This is a huge improvement from the same author of the package.
This commit is contained in:
KJ
2024-07-02 11:55:47 -04:00
parent 4407141739
commit 30c890a155
5 changed files with 15 additions and 25 deletions

View File

@ -9,25 +9,14 @@
;;; Code:
(use-package php-mode
(use-package php-ts-mode
:defer t
: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)
)
)
)
:mode "\\.php\\'"
:ensure nil)
(use-package php-doc-block
:after php-mode
:after php-ts-mode
:bind ("C-c d b" . php-doc-block)
:ensure (:host github :repo "moskalyovd/emacs-php-doc-block")
)