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: Craig Muth
Subject: Re: Escape key as C-g
Date: Mon, 4 Aug 2014 17:26:53 -0700

I've used that in the past.  It seems to have no effect in the
terminal though (in emacs 22.1.1) :(

--Craig


On Mon, Aug 4, 2014 at 4:31 PM, Juri Linkov <address@hidden> wrote:
>> 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]