From 50ca98723ad98feb98f818b33d86141bc7f6ad92 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 24 Jul 2019 17:00:36 +0200 Subject: Emacs: run local checkout of company-tabnine --- emacs/.emacs.d/main.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs/.emacs.d/main.el') 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 ("" #'company-tabnine-call-other-backends "" #'company-tabnine-call-other-backends) :config (progn -- cgit 1.4.1