summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2019-07-24 17:00:36 +0200
committerAlan Pearce2019-07-24 17:00:36 +0200
commit50ca98723ad98feb98f818b33d86141bc7f6ad92 (patch)
tree3fc2207c145178f752b26ffc9fe45d855522f6d6 /emacs
parent43cfdf0d90674c88a43d0b24090b51416ba4fad9 (diff)
downloadnixfiles-50ca98723ad98feb98f818b33d86141bc7f6ad92.tar.lz
nixfiles-50ca98723ad98feb98f818b33d86141bc7f6ad92.tar.zst
nixfiles-50ca98723ad98feb98f818b33d86141bc7f6ad92.zip
Emacs: run local checkout of company-tabnine
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 825d6e60..6e8bb4f0 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -352,8 +352,14 @@ With two prefix arguments, write out the day and month name."
 
 (use-package all-the-icons)
 
+(eval-and-compile
+  (defun company-tabnine-load-path ()
+    (s-trim-right (shell-command-to-string "ghq list -p company-tabnine"))))
+
 (use-package company-tabnine
   :commands (company-tabnine)
+  :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