all repos — nixfiles @ 779b6ae1b89152950060cf8336d226adbdea77f9

System and user configuration, managed by nix and home-manager

Emacs: update activation of company-tng
Alan Pearce alan@alanpearce.eu
Mon, 13 Jun 2022 09:34:06 +0200
commit

779b6ae1b89152950060cf8336d226adbdea77f9

parent

ebcd60e7587904b5992ccc5eecd0523963d6bd05

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -305,7 +305,6 @@ (use-package evil-anzu   :defer 2
   :after evil)
 
-(defvar evil-collection-company-use-tng t)
 (use-package evil-collection
   :after (evil)
   :defer 3
@@ -315,7 +314,9 @@ :config (progn             (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