From e2f461a316b876501ac9b1528c2c348ff4a150b0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 11 Jan 2020 20:44:12 +0100 Subject: Emacs: improve company tab handling --- user/emacs/.emacs.d/init.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'user') diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el index aca54118..67424116 100644 --- a/user/emacs/.emacs.d/init.el +++ b/user/emacs/.emacs.d/init.el @@ -495,8 +495,14 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (general-unbind company-active-map "RET" [return])) - :general (:states 'insert - "TAB" #'company-indent-or-complete-common)) + :general + (:states 'insert + "TAB" #'company-indent-or-complete-common) + (:keymaps 'company-active-map + "TAB" #'company-complete-common-or-cycle + "" #'company-complete-common-or-cycle + "S-TAB" #'company-select-previous + "" #'company-select-previous)) (use-package all-the-icons :config (setq all-the-icons-color-icons nil)) -- cgit 1.4.1