From b06fe0dde2f61ac76794e4403cbf96725de602f8 Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Thu, 12 Jul 2018 18:44:18 +0200 Subject: [PATCH] Made company-auctex more concise --- modules/lang/latex/config.el | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/lang/latex/config.el b/modules/lang/latex/config.el index 7db547e92..be9f8041a 100644 --- a/modules/lang/latex/config.el +++ b/modules/lang/latex/config.el @@ -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