I'm an amateur in Emacs and I would like to change TAB
with C-q TAB
. I used the code:
(define-key key-translation-map (kbd "TAB") (kbd"C-q TAB"))
But by doing so, I need to press TAB
twice in order to get a indent and under the screen it shows C-q TAB TAB
.
Why would this happen? How can I get the indent only by pressing TAB
once?
TAB
to just insert aTAB
character then bindTAB
toself-insert-command
. But be aware that various modes bindTAB
in other ways, so you may need to either bind it to what you want in those modes or define a minor mode where you bind it to what you want, and then turn on that minor mode.