diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2024-04-03 10:11:22 -0600 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2024-04-03 10:11:22 -0600 |
commit | 74305c54fbe8e220e691d5c2f69e9c36766b37da (patch) | |
tree | e5266a77fb3eecb76655573ac54f35fecdab6288 | |
parent | 34c823dc4369b16a6c2894070fba184acb598ab1 (diff) | |
download | dotfiles-74305c54fbe8e220e691d5c2f69e9c36766b37da.tar.gz dotfiles-74305c54fbe8e220e691d5c2f69e9c36766b37da.tar.xz |
config: emacs: use texlab LSP for tex/bibtex files
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
-rw-r--r-- | config/emacs/emacs.d/emacs.org | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/config/emacs/emacs.d/emacs.org b/config/emacs/emacs.d/emacs.org index acb1f6d7..1ba85a8b 100644 --- a/config/emacs/emacs.d/emacs.org +++ b/config/emacs/emacs.d/emacs.org @@ -3123,6 +3123,22 @@ Most shell applications accept Perl Compatible Regular Expressions." #+end_src #+begin_src elisp +(defun kb/latex-eglot-server (interactive?) + "Return the eglot server for LaTeX." + (list "guix" + "time-machine" + (string-join `("--channels=" ,(getenv "HOME") "/.config/guix/channels.scm")) + "--" + "shell" + "--pure" + "rust-texlab" + "texlive" + "texlive-biber" + "python-pygments" + "--" + "texlab")) +#+end_src +#+begin_src elisp (use-package eglot :commands (eglot eglot-ensure) :demand t @@ -3145,7 +3161,9 @@ Most shell applications accept Perl Compatible Regular Expressions." (cons '(java-mode java-ts-mode) #'kb/java-eglot-server) (cons '(python-mode python-ts-mode) - #'kb/python-eglot-server))) + #'kb/python-eglot-server) + (cons '(latex-mode bibtex-mode) + #'kb/latex-eglot-server))) :custom (eglot-report-progress t) (eglot-confirm-server-initiated-edits 'confirm) |