Made company-auctex more concise

This commit is contained in:
Patrick Elliott 2018-07-12 18:44:18 +02:00
parent 0edd401539
commit b06fe0dde2

View file

@ -198,15 +198,8 @@
(def-package! company-auctex
:when (featurep! :completion company)
:commands (company-auctex-init)
: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)))
:hook (LaTeX-mode . ((make-local-variable 'company-backends)
(company-auctex-init))))
;; Nicely indent lines that have wrapped when visual line mode is activated
(def-package! adaptive-wrap