unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).