I believe markdown mode should be used TAB
instead <tab>
.
As far as I can tell, <tab>
this is the Tab key on the keyboard and TAB
is the control-I or ascii 9 character (written \t
or \x09
). The Tab key is not ascii significant.
In the Emacs GUI, Emacs sees that you pressed the Tab ( <tab>
) key and converts it TAB
to the default Ci ( ). Emacs can distinguish between Tab and Ci, but converts Tab to Ci unless you specifically bind <tab>
to something else (which is what markdown mode does).
In a terminal, the terminal converts the Tab key to Ci (ascii 9), and Emacs only sees Ci. Emacs cannot tell the difference between the two because they both display as Ci.
The same thing happens with <return>
vs RET
(Cm, ascii 13).
amitp
source
to share