[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What is a safe way to bind ESC to quit?
From: |
scame |
Subject: |
What is a safe way to bind ESC to quit? |
Date: |
Tue, 06 Apr 2021 16:44:52 +0000 |
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?
- What is a safe way to bind ESC to quit?,
scame <=