mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add +latex-symbols-compand-backend delegate #754
If +latex-enable-unicode-math is non-nil, company-math-symbols-unicode will be used instead of company-math-symbols-latex.
This commit is contained in:
@ -40,4 +40,11 @@
|
||||
(t
|
||||
(+ contin indent))))))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun +latex-symbols-company-backend (command &optional arg &rest _ignored)
|
||||
"A wrapper backend for `company-mode' that either uses
|
||||
`company-math-symbols-unicode' or `company-math-symbols-latex'. If
|
||||
`+latex-enable-unicode-math' is non-nil use the former, otherwise the latter."
|
||||
(if +latex-enable-unicode-math
|
||||
(company-math-symbols-unicode command arg)
|
||||
(company-math-symbols-latex command arg)))
|
||||
|
Reference in New Issue
Block a user