I was reading the the documentation for Yasnippet mode, when I came to the section where the trigger key is defined:
It seems like Yasnippet minor mode defines the TAB key to run yas-expand
using:
(define-key yas-minor-mode-map (kbd "<tab>") 'yas-expand)
(define-key yas-minor-mode-map (kbd "TAB") 'yas-expand)
What is the difference between <tab>
and TAB
?
(I tried to google this but I could not find a clear description)
<tab>
andTAB
? – Håkon Hægland Feb 27 '15 at 09:48<tab>
andTAB
, the only way to run the command associated withTAB
is to typeC-i
? – Håkon Hægland Feb 27 '15 at 10:38<tab>
to a different command than what you bindTAB
to, then what you get when you hit the "Tab" key depends on which/what it sends to Emacs. If it sendsC-i
(akaTAB
) then you get theTAB
binding. If it sends<tab>
then you get its binding. (And yes, you can always hitC-i
to get theTAB
binding.) – Drew Feb 27 '15 at 15:57TAB
keys are given byStreakyCobra
in this spacemacs github issue. You may want to include some of that information in your answer. – Håkon Hægland Oct 28 '16 at 09:16TAB
, or if GUI-only, use<tab>
. – Adam Spiers Jun 30 '20 at 12:10