all repos — nixfiles @ 1744c1a6bc064f127348f32aa8846c5859065ca6

System and user configuration, managed by nix and home-manager

emacs: fix calling non-tabnine backends
Alan Pearce alan@alanpearce.eu
Mon, 01 May 2023 17:35:01 +0200
commit

1744c1a6bc064f127348f32aa8846c5859065ca6

parent

c6eecb147cb88530f726a557b552cb5077449693

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -496,6 +496,8 @@ "C-x C-f" #'company-files)   (: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 @@ (use-package tabnine-capf   :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)))