help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Restoring Old Key Binding for eval-expression


From: Eli Zaretskii
Subject: Re: Restoring Old Key Binding for eval-expression
Date: Sat, 04 Jun 2016 12:23:41 +0300

> Date: Sun, 24 Apr 2016 13:06:56 -0700 (PDT)
> From: address@hidden
> 
> I am just starting to use a current version of Emacs that has eval-expression 
> bound to M-:.  I used to use eval-expression a lot and loved being able to 
> just type Esc Esc to invoke eval-expression.  Is there a way to restore this 
> in my .emacs file?  I've tried several things, like:
> 
>  (global-set-key "\M-ESC" 'eval-expression)
>  (global-set-key "\M-ESC" 'eval-expression)
>  (global-set-key "ESC-ESC" 'eval-expression)
> 
> but I can't get any of these to work.  M-: is unwieldy as I have to hit the 
> Meta key, the colon, and the shift key all at the same time.
> 
> I really miss Esc Esc, which used to work I guess because the old binding was 
> M-Esc, and Esc-Esc did the same thing.

This should get you off the ground:

  (global-set-key "\e\e" 'eval-expression)

(For the future, you can find out answers to many such questions by
looking at various key bindings in the Emacs sources.)



reply via email to

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