]> git.eshelyaron.com Git - emacs.git/commitdiff
Support ada-ts-mode, gpr-mode and gpr-ts-mode in Eglot
authorTroy Brown <brownts@troybrown.dev>
Sun, 2 Jun 2024 15:48:54 +0000 (11:48 -0400)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Jun 2024 19:33:01 +0000 (21:33 +0200)
* lisp/progmodes/eglot.el (eglot-server-programs): Add
ada-ts-mode, gpr-mode and gpr-ts-mode.

Copyright-paperwork-exempt: yes
(cherry picked from commit 58a26db6261b752a34957a6554820a7cf5c05fc2)

lisp/progmodes/eglot.el

index 96705d8f47cc2426d7b9c5dd08edfbfd0ca7ab97..22cee1ada7bc5dfcc683176adc147b412ef844ba 100644 (file)
@@ -287,7 +287,8 @@ automatically)."
             '("language_server.bat")
           (eglot-alternatives
            '("language_server.sh" "start_lexical.sh"))))
-    (ada-mode . ("ada_language_server"))
+    ((ada-mode ada-ts-mode) . ("ada_language_server"))
+    ((gpr-mode gpr-ts-mode) . ("ada_language_server" "--language-gpr"))
     (scala-mode . ,(eglot-alternatives
                     '("metals" "metals-emacs")))
     (racket-mode . ("racket" "-l" "racket-langserver"))