* key-translation-map and prefixes
@ 2016-08-05 14:33 Holger Ki
0 siblings, 0 replies; only message in thread
From: Holger Ki @ 2016-08-05 14:33 UTC (permalink / raw)
To: help-gnu-emacs
Dear ML,
I'm running GNU Emacs 24.5.1 in an ordinary Linux TTY using a PC-style
keyboard.
Before that I was using an editor striking similar to emacs + evil-mode. :-)
In order to switch from insert state back to normal state in evil-mode,
one uses the escape key (like in vim).
A nice shortcut that worked in vim was to use the Alt-key together with
the next normal-state command to switch to normal state and do the
command without having to stretch to the escape key.
Now my question:
Is it possible to use a keyboard translation map
to map e.g. M-0, M-k, M-x, etc,
to the sequence escape key followed by 0, k or x?
Among other things I tried this in my .emacs:
(define-key key-translation-map (kbd "\M-0")
(kbd "\E 0"))
But this doesn't work, as the escape key still gets recognised as
ESC-prefix after the translation.
Is there a way to prevent emacs from interpreting the Escape key as
prefix again?
Holger
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-05 14:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-05 14:33 key-translation-map and prefixes Holger Ki
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.