fix(emacs): add company completion for latex
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
aed173cef5
commit
9e8d626362
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,9 @@
|
||||||
(require 'cdlatex)
|
(require 'cdlatex)
|
||||||
(require 'f)
|
(require 'f)
|
||||||
|
|
||||||
|
(require 'company)
|
||||||
|
(require 'company-math)
|
||||||
|
|
||||||
(defun custom-compile-latex ()
|
(defun custom-compile-latex ()
|
||||||
"Run the `just' command -- the command I use to compile my environment."
|
"Run the `just' command -- the command I use to compile my environment."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
@ -109,6 +112,10 @@
|
||||||
(set (make-local-variable 'LaTeX-electric-left-right-brace) t)
|
(set (make-local-variable 'LaTeX-electric-left-right-brace) t)
|
||||||
(set 'preview-scale-function 0.75)
|
(set 'preview-scale-function 0.75)
|
||||||
|
|
||||||
|
(setq-local company-backends
|
||||||
|
(append '((company-math-symbols-latex company-latex-commands))
|
||||||
|
company-backends))
|
||||||
|
|
||||||
(LaTeX-add-environments
|
(LaTeX-add-environments
|
||||||
'("theorem" latex-env-theorem)
|
'("theorem" latex-env-theorem)
|
||||||
'("corollary" latex-env-theorem)
|
'("corollary" latex-env-theorem)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue