Skip to content

Commit

Permalink
Handle AUCTeX's new mode naming convention
Browse files Browse the repository at this point in the history
Recently, AUCTeX renamed several of its major modes to avoid shadowing emacs built-in modes. This is documented here:
https://git.savannah.gnu.org/cgit/auctex.git/tree/doc/changes.texi

As a result, if one has the newer version of AUCTeX (the version currently available from ELPA) then when they activate LaTeX-mode, lsp will be unavailable.

This is a simple fix to add support for the new TeX-mode and LaTeX-mode.
  • Loading branch information
dankessler committed Feb 14, 2024
1 parent 9a59f26 commit 8586460
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lsp-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,10 @@ PARAMS progress report notification data."
(lsp-stdio-connection
#'lsp-latex-new-connection)
:major-modes '(tex-mode
TeX-mode ;; AUCTeX 14+ has renamed tex-mode to TeX-mode
yatex-mode
latex-mode
LaTeX-mode ;; AUCTeX 14+ has renamed latex-mode to LaTeX-mode
bibtex-mode)
:server-id 'texlab2
:priority 2
Expand Down

0 comments on commit 8586460

Please sign in to comment.