From 9eccdd5c1b614ff1c115d14bf6ad0449d03eccec Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Thu, 12 Jul 2018 19:52:54 +0200 Subject: [PATCH] fixed broken hook --- modules/lang/latex/config.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/lang/latex/config.el b/modules/lang/latex/config.el index 6953b6e3b..37fa4d3f3 100644 --- a/modules/lang/latex/config.el +++ b/modules/lang/latex/config.el @@ -196,8 +196,11 @@ (def-package! company-auctex :when (featurep! :completion company) - :hook (LaTeX-mode . ((make-local-variable 'company-backends) - (company-auctex-init)))) + :after latex + :config + (add-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