Improved math completion via company-math
This commit is contained in:
parent
614c49f43f
commit
babb7821a0
2 changed files with 11 additions and 5 deletions
|
@ -200,10 +200,15 @@
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
:after latex
|
:after latex
|
||||||
:config
|
:config
|
||||||
|
(def-package! company-math
|
||||||
|
:defer t
|
||||||
|
:init
|
||||||
(add-hook! LaTeX-mode
|
(add-hook! LaTeX-mode
|
||||||
(make-local-variable 'company-backends)
|
(setq-local company-backends
|
||||||
(add-to-list 'company-backends
|
(append '((company-math-symbols-latex
|
||||||
'(company-auctex-macros company-auctex-symbols company-auctex-environments))))
|
company-auctex-macros
|
||||||
|
company-auctex-environments))
|
||||||
|
company-backends)))))
|
||||||
|
|
||||||
(def-package! company-reftex
|
(def-package! company-reftex
|
||||||
:after reftex
|
:after reftex
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
|
|
||||||
(when (featurep! :completion company)
|
(when (featurep! :completion company)
|
||||||
(package! company-auctex)
|
(package! company-auctex)
|
||||||
(package! company-reftex))
|
(package! company-reftex)
|
||||||
|
(package! company-math))
|
||||||
(when (featurep! :completion ivy)
|
(when (featurep! :completion ivy)
|
||||||
(package! ivy-bibtex))
|
(package! ivy-bibtex))
|
||||||
(when (featurep! :completion helm)
|
(when (featurep! :completion helm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue