unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* What is a safe way to bind ESC to quit?
@ 2021-04-06 16:44 scame via Users list for the GNU Emacs text editor
  2021-04-06 17:14 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: scame via Users list for the GNU Emacs text editor @ 2021-04-06 16:44 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

I have no use for ESC as a prefix key, I don't use Emacs on terminal and
ESC ESC ESC never worked for me when emacs was hung, so I
want to use ESC for what C-g does.

I googled it and found this:

(define-key key-translation-map (kbd "ESC") (kbd "C-g"))

It seems to work, but I'm curious: is this the best way to do it?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-06 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-06 16:44 What is a safe way to bind ESC to quit? scame via Users list for the GNU Emacs text editor
2021-04-06 17:14 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).