From: Michael Slass <miknrene@drizzle.com>
Subject: Re: Changing key bindings of printable chars
Date: Thu, 24 Jun 2004 16:34:32 -0700 [thread overview]
Message-ID: <m3zn6s1qev.fsf@eric.rossnet.com> (raw)
In-Reply-To: 2k0tudF160v27U1@uni-berlin.de
"Paul Batt" <paul@pbatt.ch> writes:
>How can I change the key binding of a single printable character key to
>another? I need to have "z" and "Z" print "y" and "Y" and vice versa and I
>need to have RET do a double-return e.g. two line feeds instead of only one.
>(I found many peaces of instruction how to change key bindings of double
>key-strokes like C-x but can't just figure out how to do it for a single
>printable character key). Thank you.
>
>
>
>
>
for Y,y,Z, and z ...
(local-set-key "Y" (lambda () (interactive) (insert "Z")))
... and so on
for return
(local-set-key "\C-m" (lambda () (interactive) (newline 2)))
I'm almost afraid to ask why you want this, but not quite. Why do you
want this?
--
Mike Slass
next prev parent reply other threads:[~2004-06-24 23:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-24 21:04 Changing key bindings of printable chars Paul Batt
2004-06-24 23:34 ` Michael Slass [this message]
2004-06-25 0:55 ` John Paul Wallington
2004-06-25 18:22 ` Kevin Rodgers
2004-06-26 0:30 ` John Paul Wallington
2004-06-26 1:26 ` Pascal Bourguignon
2004-06-25 20:31 ` Paul Batt
2004-06-25 22:56 ` Michael Slass
2004-06-26 0:05 ` Paul Batt
2004-06-30 15:34 ` Kai Grossjohann
2004-06-24 23:46 ` David Vanderschel
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=m3zn6s1qev.fsf@eric.rossnet.com \
--to=miknrene@drizzle.com \
/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).