summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2022-06-13 09:34:06 +0200
committerAlan Pearce2022-06-13 09:34:06 +0200
commit779b6ae1b89152950060cf8336d226adbdea77f9 (patch)
tree930802e4d6c986c0fc56e62ce4bd08b2165c71fb /user/emacs
parentebcd60e7587904b5992ccc5eecd0523963d6bd05 (diff)
downloadnixfiles-779b6ae1b89152950060cf8336d226adbdea77f9.tar.lz
nixfiles-779b6ae1b89152950060cf8336d226adbdea77f9.tar.zst
nixfiles-779b6ae1b89152950060cf8336d226adbdea77f9.zip
Emacs: update activation of company-tng
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index f8f1b62d..80994fef 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -305,7 +305,6 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :defer 2
   :after evil)
 
-(defvar evil-collection-company-use-tng t)
 (use-package evil-collection
   :after (evil)
   :defer 3
@@ -315,7 +314,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             (setq evil-collection-magit-use-y-for-yank nil)
             (general-unbind 'normal magit-mode-map
               "<escape>")
-            (evil-collection-init)))
+            (evil-collection-init)
+            (with-eval-after-load 'company
+              (company-tng-mode t))))
 
 (general-create-definer my-leader-def
   :keymaps 'override