unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jeff Rose <rosejn@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: two character keymap
Date: Thu, 14 Feb 2008 20:20:00 +0100	[thread overview]
Message-ID: <47B49460.9040100@gmail.com> (raw)

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




                 reply	other threads:[~2008-02-14 19:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B49460.9040100@gmail.com \
    --to=rosejn@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).