all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Igor <jolly-good-fellow@yandex.ru>
To: help-gnu-emacs@gnu.org
Subject: Swap Tab and Escape in all modes including evil
Date: Sun, 14 Feb 2021 06:40:25 +1000	[thread overview]
Message-ID: <fc70c043-f754-9149-7fc3-7c6630c92a8e@yandex.ru> (raw)

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	other threads:[~2021-02-13 20:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-13 20:40 Igor [this message]
2021-02-13 22:36 ` Swap Tab and Escape in all modes including evil Emanuel Berg via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc70c043-f754-9149-7fc3-7c6630c92a8e@yandex.ru \
    --to=jolly-good-fellow@yandex.ru \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.