Added +unicode-math flag
This commit is contained in:
parent
f497d1bf0d
commit
c502fe6328
1 changed files with 6 additions and 1 deletions
|
@ -89,13 +89,18 @@
|
|||
:when (featurep! :completion company)
|
||||
:defer t
|
||||
:init
|
||||
(add-to-list '+latex--company-backends 'company-math-symbols-latex nil #'eq))
|
||||
(if (featurep! +unicode-math)
|
||||
(add-to-list '+latex--company-backends 'company-math-symbols-unicode nil #'eq)
|
||||
(add-to-list '+latex--company-backends 'company-math-symbols-latex nil #'eq)))
|
||||
|
||||
(when +latex--company-backends
|
||||
;; We can't use the `set-company-backend!' because Auctex reports its
|
||||
;; major-mode as `latex-mode', but uses LaTeX-mode-hook for its mode, which is
|
||||
;; not something `set-company-backend!' anticipates (and shouldn't have to!)
|
||||
(add-hook! 'LaTeX-mode-hook
|
||||
(when (featurep! +unicode-math)
|
||||
(setq-local company-math-allow-unicode-symbols-in-faces (quote (tex-math font-latex-math-face)))
|
||||
(setq-local company-math-disallow-unicode-symbols-in-faces nil))
|
||||
(add-to-list (make-local-variable 'company-backends)
|
||||
+latex--company-backends)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue