emacs-devel
[Top][All Lists]
Advanced

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

Re: Escape key as C-g


From: Juri Linkov
Subject: Re: Escape key as C-g
Date: Tue, 05 Aug 2014 02:31:07 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)

> Regarding making the Escape key behave like C-g, this seems to work
> fine in GUI emacs, but not terminal emacs:
>
>   (define-key key-translation-map "\e" (kbd "C-g"))
>
> Anyone know of some sort of settings change or other I could make to
> get this to work in emacs running in a terminal?

I recommend a more handy `keyboard-escape-quit' that takes care
of additional contexts for a single ESC in GUI, and leaves ESC
as a prefix key in a terminal:

  (define-key global-map [escape] 'keyboard-escape-quit)



reply via email to

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