]> git.eshelyaron.com Git - emacs.git/commitdiff
Support phps-mode
authorFelicián Németh <felician.nemeth@gmail.com>
Mon, 1 Feb 2021 16:02:58 +0000 (17:02 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Feb 2021 16:02:58 +0000 (16:02 +0000)
phps-mode is available from ELPA, php-mode isn't.

* eglot.el (eglot-server-programs): Recognize phps-mode as a PHP mode.

Co-authored-by: João Távora <joaotavora@gmail.com>
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/418

lisp/progmodes/eglot.el

index e1387235ff579103625fac9e07cdade924a8a8cd..44648ae41b4d3c5e1003d953f5132e799ea20414 100644 (file)
 
 (defvar eglot-server-programs '((rust-mode . (eglot-rls "rls"))
                                 (python-mode . ("pyls"))
-                                ((js-mode
-                                  typescript-mode)
+                                ((js-mode typescript-mode)
                                  . ("typescript-language-server" "--stdio"))
                                 (sh-mode . ("bash-language-server" "start"))
-                                (php-mode
+                                ((php-mode phps-mode)
                                  . ("php" "vendor/felixfbecker/\
 language-server/bin/php-language-server.php"))
                                 ((c++-mode c-mode) . ("ccls"))