Replace php-mode with php-ts-mode.
This is a huge improvement from the same author of the package.
This commit is contained in:
parent
4407141739
commit
30c890a155
@ -31,15 +31,15 @@
|
||||
|
||||
(use-package eglot
|
||||
:defer t
|
||||
;; :ensure nil
|
||||
:hook ((css-mode . eglot-ensure)
|
||||
(html-mode . eglot-ensure)
|
||||
(php-mode . eglot-ensure)
|
||||
(rust-mode . eglot-ensure)
|
||||
(sh-mode . eglot-ensure))
|
||||
:ensure nil
|
||||
:hook ((css-mode . eglot-ensure)
|
||||
(html-mode . eglot-ensure)
|
||||
(php-ts-mode . eglot-ensure)
|
||||
(rust-mode . eglot-ensure)
|
||||
(sh-mode . eglot-ensure))
|
||||
:config
|
||||
(setq eglot-sync-connect 0)
|
||||
(add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio")))
|
||||
(add-to-list 'eglot-server-programs '(php-ts-mode . ("intelephense" "--stdio")))
|
||||
)
|
||||
|
||||
;; Mejorar la velocidad de eglot (un binario en rust )
|
||||
|
@ -88,7 +88,7 @@
|
||||
;; Cambios de modos
|
||||
(evil-define-key 'normal 'global (kbd "<leader>mh") 'html-mode)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>mj") 'js-mode)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>mp") 'php-mode)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>mp") 'php-ts-mode)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>mr") 'rust-mode)
|
||||
(evil-define-key 'normal 'global (kbd "<leader>mw") 'web-mode)
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
(global-set-key (kbd "C-x m") nil) ; Unbind mail on C-x m
|
||||
(global-set-key (kbd "C-x mh") 'mhtml-mode)
|
||||
(global-set-key (kbd "C-x mj") 'js-mode)
|
||||
(global-set-key (kbd "C-x mp") 'php-mode)
|
||||
(global-set-key (kbd "C-x mp") 'php-ts-mode)
|
||||
(global-set-key (kbd "C-x mr") 'rust-mode)
|
||||
(global-set-key (kbd "C-x mw") 'web-mode)
|
||||
|
||||
|
@ -201,6 +201,7 @@
|
||||
(objc-mode . ,hes-c/c++/objc-escape-sequence-re)
|
||||
(go-mode . ,hes-c/c++/objc-escape-sequence-re)
|
||||
(php-mode . ,hes-c/c++/objc-escape-sequence-re)
|
||||
(php-ts-mode . ,hes-c/c++/objc-escape-sequence-re)
|
||||
(java-mode . ,hes-java-escape-sequence-re)
|
||||
(clojure-mode . ,hes-java-escape-sequence-re)
|
||||
(js-mode . ,hes-js-escape-sequence-re)
|
||||
|
@ -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")
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user