summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-05-01 17:35:01 +0200
committerAlan Pearce2023-05-05 21:08:16 +0200
commit1744c1a6bc064f127348f32aa8846c5859065ca6 (patch)
treef01fd625e926d8d4d9b7e23644011c7601f35079 /user/emacs
parentc6eecb147cb88530f726a557b552cb5077449693 (diff)
downloadnixfiles-1744c1a6bc064f127348f32aa8846c5859065ca6.tar.lz
nixfiles-1744c1a6bc064f127348f32aa8846c5859065ca6.tar.zst
nixfiles-1744c1a6bc064f127348f32aa8846c5859065ca6.zip
emacs: fix calling non-tabnine backends
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 50477c72..0e05a26f 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -496,6 +496,8 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   (:keymaps 'company-active-map
             "TAB" #'company-complete-common-or-cycle
             "<tab>" #'company-complete-common-or-cycle
+						"<M-tab>" #'company-other-backend
+						"<C-tab>" #'company-other-backend
             "S-TAB" #'company-select-previous
             "<backtab>" #'company-select-previous))
 
@@ -519,9 +521,6 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :commands (tabnine-completion-at-point)
   :after (company)
   :config (setq tabnine-capf-binaries-folder "~/.local/tabnine")
-  ;; use tabnine-capf-with-disabled
-  :general ("<M-tab>" #'tabnine-capf-call-other-backends
-            "<C-tab>" #'tabnine-capf-call-other-backends)
   :init (progn
           (advice-add 'tabnine-capf-start-process :around #'quiet)
           (add-to-list 'company-backends #'tabnine-completion-at-point)))