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 withTABis to typeC-i? – Håkon Hægland Feb 27 '15 at 10:38<tab>to a different command than what you bindTABto, 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 theTABbinding. If it sends<tab>then you get its binding. (And yes, you can always hitC-ito get theTABbinding.) – Drew Feb 27 '15 at 15:57TABkeys are given byStreakyCobrain 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