How to bind ESC to exit (Cg) in emacs for Mac

I am using emacs 24.0.95 for Mac (from the emacsformacosx.com build).

I tried to do

(global-set-key (kbd "<escape>") 'keyboard-escape-quit)

as suggested in a similar (but specific) question (http://stackoverflow.com/questions/648817/how-to-bind-esc-to-keyboard-escape-quit-in-emacs) which seems to work in Win, but not on Mac, all meta-keystrokes stop working.

+3
source share
1 answer

OSX, Linux- , , Cg -, -escape-quit. emacs : C-h k C-g, ... :

"C-g keyboard-quit, Lisp `simple.el '.

C-g.

(-)

"quit". Lisp . , , . "

, , ?

EDIT: , :

(global-set-key (kbd "<escape>") 'keyboard-quit)

C-g Escape.

+3

All Articles