[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot b0fdfb0 30/54: Close #379: add built-in support f

From: João Távora
Subject: [elpa] externals/eglot b0fdfb0 30/54: Close #379: add built-in support for TeX and friends
Date: Thu, 16 Apr 2020 05:31:49 -0400 (EDT)

branch: externals/eglot
commit b0fdfb02e14f1c3e40b4a601bb7d6abb470ea63b
Author: astoff <address@hidden>
Commit: João Távora <address@hidden>

    Close #379: add built-in support for TeX and friends
    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
    * 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
 README.md | 2 ++
 eglot.el  | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 63377d9..9045d12 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,7 @@ for the language you're using. Otherwise, it prompts you to 
enter one.
 * Elixir's [elixir-ls][elixir-ls]
 * Ada's [ada_language_server][ada_language_server]
 * Scala's [metals][metals]
+* TeX/LaTeX's [Digestif][digestif]
 I'll add to this list as I test more servers. In the meantime you can
 customize `eglot-server-programs`:
@@ -457,3 +458,4 @@ Under the hood:
 [news]: https://github.com/joaotavora/eglot/blob/master/NEWS.md
 [ada_language_server]: https://github.com/AdaCore/ada_language_server
 [metals]: http://scalameta.org/metals/
+[digestif]: https://github.com/astoff/digestif
diff --git a/eglot.el b/eglot.el
index 3e8eb2d..4c0160a 100644
--- a/eglot.el
+++ b/eglot.el
@@ -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 
+                                 . ("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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]