mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Made company-auctex more concise
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user