From 22b876a153e8bbede02804e374c5c234213181f2 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Tue, 6 Aug 2024 16:58:06 +0200 Subject: [PATCH] Fix eglot-server-programs for TeX modes * lisp/progmodes/eglot.el (eglot-server-programs): Explicitly list modes derived from tex-mode, so that the correct language id is guessed. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 31948a12d69..67bd26f6f02 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -292,7 +292,7 @@ eglot-server-programs (scala-mode . ,(eglot-alternatives '("metals" "metals-emacs"))) (racket-mode . ("racket" "-l" "racket-langserver")) - ((tex-mode context-mode texinfo-mode bibtex-mode) + ((latex-mode plain-tex-mode context-mode texinfo-mode bibtex-mode tex-mode) . ,(eglot-alternatives '("digestif" "texlab"))) (erlang-mode . ("erlang_ls" "--transport" "stdio")) ((yaml-ts-mode yaml-mode) . ("yaml-language-server" "--stdio")) -- 2.45.2