[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making ESC not a prefix key while keeping Alt = Meta
From: |
Yevgeniy Makarov |
Subject: |
Re: Making ESC not a prefix key while keeping Alt = Meta |
Date: |
11 Sep 2006 19:36:30 -0700 |
User-agent: |
G2/1.0 |
> Apparently some modes bind ESC locally e.g. lisp-interaction-mode
> (*scratch) and help-mode (*Help*). So you'd need to put
> (local-unset-key "\e") in each such mode's hook.
You are right. The local keymap for *scratch* buffer defined ESC. After
I unset it, I ran
(key-binding "\e")
and the answer was nil.
After that, I entered
> (let ((input-mode (current-input-mode)))
> (setcar (nthcdr 3 input-mode) ?\e) ; QUIT = ESC
> (set-input-mode input-mode))
replacing (set-input-mode input-mode) with (apply 'set-input-mode
input-mode), but pressing ESC when the minibuffer is active (e.g.,
during entering a filename) still has no effect. After I said
(global-set-key "\e" 'keyboard-quit)
pressing ESC in the scratch buffer causes the word "Quit" to appear in
the minibuffer, but pressing ESC in the minibuffer still has no effect.
Yevgeniy