Made company-auctex more concise
This commit is contained in:
parent
0edd401539
commit
b06fe0dde2
1 changed files with 2 additions and 9 deletions
|
@ -198,15 +198,8 @@
|
||||||
|
|
||||||
(def-package! company-auctex
|
(def-package! company-auctex
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
:commands (company-auctex-init)
|
:hook (LaTeX-mode . ((make-local-variable 'company-backends)
|
||||||
:init
|
(company-auctex-init))))
|
||||||
;; 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
|
|
||||||
(make-local-variable 'company-backends)
|
|
||||||
(company-auctex-init)))
|
|
||||||
|
|
||||||
|
|
||||||
;; Nicely indent lines that have wrapped when visual line mode is activated
|
;; Nicely indent lines that have wrapped when visual line mode is activated
|
||||||
(def-package! adaptive-wrap
|
(def-package! adaptive-wrap
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue