summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-08-02 16:57:48 +0200
committerAlan Pearce2019-08-02 16:57:48 +0200
commit9f7c4ac3b19f09f0586c79ea557de0428ce7be0f (patch)
tree1a5c0b4f9bd58f917f2c4e0fe18d06c160132d0d
parent8d22f6ac9b62f0c8793b6e63a5633c0f05f743fc (diff)
downloadnixfiles-9f7c4ac3b19f09f0586c79ea557de0428ce7be0f.tar.lz
nixfiles-9f7c4ac3b19f09f0586c79ea557de0428ce7be0f.tar.zst
nixfiles-9f7c4ac3b19f09f0586c79ea557de0428ce7be0f.zip
Emacs: enable company-tabnine at startup
-rw-r--r--emacs/.emacs.d/main.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 8add90c8..a67b371c 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -359,12 +359,13 @@ With two prefix arguments, write out the day and month name."
 
 (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