summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 7ccbe260..8038298a 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -558,7 +558,9 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
 (use-package tabnine
   :config (progn
             (setq tabnine-binaries-folder "~/.local/tabnine")
-            (global-tabnine-mode)
+            (with-demoted-errors "TabNine error: %s"
+              (when (tabnine--executable-path)
+                (global-tabnine-mode)))
 
             (define-key tabnine-completion-map (kbd "TAB") #'tabnine-accept-completion)
             (define-key tabnine-completion-map (kbd "<tab>") #'tabnine-accept-completion)