]> git.eshelyaron.com Git - emacs.git/commitdiff
Add built-in support for tex and friends
authorAugusto Stoffel <arstoffel@gmail.com>
Wed, 18 Dec 2019 12:44:28 +0000 (13:44 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 18 Dec 2019 12:44:28 +0000 (13:44 +0100)
plain-tex-mode and latex-mode are derived from tex-mode.  Some other
TeX-related modes are not, so they require an explicit mention in
eglot-server-programs.

* README.md (Connecting to a server): Add Digestif to the list

* eglot.el (eglot-server-programs): Add Digestif for TeX-related modes

Copyright-paperwork-exempt: yes
GitHub-reference: close https://github.com/joaotavora/eglot/issues/379

lisp/progmodes/eglot.el

index 3e8eb2d14fd8215349bc34f087b518b2e1a7dda5..4c0160a57050691bc82b72ada62996616eec6068 100644 (file)
@@ -105,7 +105,9 @@ language-server/bin/php-language-server.php"))
                                 (dart-mode . ("dart_language_server"))
                                 (elixir-mode . ("language_server.sh"))
                                 (ada-mode . ("ada_language_server"))
-                                (scala-mode . ("metals-emacs")))
+                                (scala-mode . ("metals-emacs"))
+                                ((tex-mode context-mode texinfo-mode bibtex-mode)
+                                 . ("digestif")))
   "How the command `eglot' guesses the server to start.
 An association list of (MAJOR-MODE . CONTACT) pairs.  MAJOR-MODE
 is a mode symbol, or a list of mode symbols.  The associated