1
0
Fork 0

fix(emacs): add company completion for latex

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-02-28 19:01:06 -05:00
parent aed173cef5
commit 9e8d626362
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -7,6 +7,9 @@
(require 'cdlatex)
(require 'f)
(require 'company)
(require 'company-math)
(defun custom-compile-latex ()
"Run the `just' command -- the command I use to compile my environment."
(interactive)
@ -109,6 +112,10 @@
(set (make-local-variable 'LaTeX-electric-left-right-brace) t)
(set 'preview-scale-function 0.75)
(setq-local company-backends
(append '((company-math-symbols-latex company-latex-commands))
company-backends))
(LaTeX-add-environments
'("theorem" latex-env-theorem)
'("corollary" latex-env-theorem)