all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.