diff options
author | Alan Pearce | 2020-01-11 20:44:12 +0100 |
---|---|---|
committer | Alan Pearce | 2020-01-11 21:29:43 +0100 |
commit | e2f461a316b876501ac9b1528c2c348ff4a150b0 (patch) | |
tree | ac805ee093df190ba519b2a37ce86fc8d15f2974 /user | |
parent | 2d0f5bf60f72f70296dc55d26b8acb22ebd83f28 (diff) | |
download | nixfiles-e2f461a316b876501ac9b1528c2c348ff4a150b0.tar.lz nixfiles-e2f461a316b876501ac9b1528c2c348ff4a150b0.tar.zst nixfiles-e2f461a316b876501ac9b1528c2c348ff4a150b0.zip |
Emacs: improve company tab handling
Diffstat (limited to 'user')
-rw-r--r-- | user/emacs/.emacs.d/init.el | 10 |
1 files changed, 8 insertions, 2 deletions
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 + "<tab>" #'company-complete-common-or-cycle + "S-TAB" #'company-select-previous + "<backtab>" #'company-select-previous)) (use-package all-the-icons :config (setq all-the-icons-color-icons nil)) |