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:
parent
147b0ada48
commit
2965923990
1 changed files with 2 additions and 2 deletions
|
|
@ -130,8 +130,8 @@
|
||||||
"Tab mode by me"
|
"Tab mode by me"
|
||||||
:lighter " aa-tab"
|
:lighter " aa-tab"
|
||||||
:global nil
|
:global nil
|
||||||
(global-set-key (kbd "<tab>") 'aa/expand)
|
(define-key prog-mode-map (kbd "<tab>") 'aa/expand)
|
||||||
(global-set-key (kbd "TAB") 'aa/expand))
|
(define-key prog-mode-map (kbd "TAB") 'aa/expand))
|
||||||
|
|
||||||
(define-globalized-minor-mode global-aa-tab-mode aa-tab-mode
|
(define-globalized-minor-mode global-aa-tab-mode aa-tab-mode
|
||||||
(lambda () (aa-tab-mode 1)))
|
(lambda () (aa-tab-mode 1)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue