all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* two character keymap
@ 2008-02-14 19:20 Jeff Rose
  0 siblings, 0 replies; only message in thread
From: Jeff Rose @ 2008-02-14 19:20 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
   I'd like to map two regular characters to a command if typed in 
sequence, but if not one after the other in order treat them as normal. 
  Specifically, I'd like to map 'kj' to mean <ESC>.  (This way I don't 
have to move off the home row.)  If I use the regular key-mapping then 
the first character becomes a prefix and it doesn't print.  Does anyone 
know how to do this?

The only way I've thought of is to map 'k[a-z]' to insert k then the 
following character, (probably have to do symbols and other stuff too), 
but then remap 'kj' to mean escape.  Not an ideal solution though.  Any 
advice would be great.

Thanks a lot,
Jeff




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-14 19:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-14 19:20 two character keymap Jeff Rose

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.