help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Swap Tab and Escape in all modes including evil


From: Igor
Subject: Swap Tab and Escape in all modes including evil
Date: Sun, 14 Feb 2021 06:40:25 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hello.

'Escape' is too far away on modern keyboards and 'Tab' could be easily typed as 'Ctrl+i' in terminal applications and Emacs. So I found it convenient to swap them in terminal key bindings and would like to have them swapped also in Emacs but not in other GUI applications(so xmodmap or xcape is not an option). Is it possible? Or at least is it possible to make 'Tab' act as 'Escape'?

I've tried

|`(define-key input-decode-map [tab] [?\e])`|

But this doesn't trigger insert-to-normal transition in evil mode: I am pressing 'Tab', I am seeing `|ESC ESC ESC`| in bottom bar, but evil state remains |<I>|.||



reply via email to

[Prev in Thread] Current Thread [Next in Thread]