all repos — nixfiles @ 9f7c4ac3b19f09f0586c79ea557de0428ce7be0f

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

Emacs: enable company-tabnine at startup
Alan Pearce alan@alanpearce.eu
Fri, 02 Aug 2019 16:57:48 +0200
commit

9f7c4ac3b19f09f0586c79ea557de0428ce7be0f

parent

8d22f6ac9b62f0c8793b6e63a5633c0f05f743fc

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

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -359,12 +359,13 @@ (string-trim-right (shell-command-to-string "ghq list -p company-tabnine")))) 
 (use-package company-tabnine
   :commands (company-tabnine)
+  :after (company)
   :load-path (lambda () (list (company-tabnine-load-path)))
   :custom ((company-tabnine-binaries-folder "~/.TabNine"))
   :general ("<M-tab>" #'company-tabnine-call-other-backends
             "<C-tab>" #'company-tabnine-call-other-backends)
-  :config (progn
-            (add-to-list 'company-backends #'company-tabnine)))
+  :init (progn
+          (add-to-list 'company-backends #'company-tabnine)))
 
 ;;; Documentation