fix(emacs): limit supper tag to prog-mode

When my custom tab was getting set on all modes it was not letting me tab in
counsel or any of the command like modes.

This now only uses the supper tab in prog-mode where this really applies.
This commit is contained in:
Ade Attwood 2022-03-13 20:30:06 +00:00
parent 147b0ada48
commit 2965923990

View file

@ -130,8 +130,8 @@
"Tab mode by me"
:lighter " aa-tab"
:global nil
(global-set-key (kbd "<tab>") 'aa/expand)
(global-set-key (kbd "TAB") 'aa/expand))
(define-key prog-mode-map (kbd "<tab>") 'aa/expand)
(define-key prog-mode-map (kbd "TAB") 'aa/expand))
(define-globalized-minor-mode global-aa-tab-mode aa-tab-mode
(lambda () (aa-tab-mode 1)))