help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing key bindings of printable chars


From: John Paul Wallington
Subject: Re: Changing key bindings of printable chars
Date: Fri, 25 Jun 2004 01:55:47 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Michael Slass <address@hidden> writes:

> "Paul Batt" <address@hidden> 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
[...]
> for Y,y,Z, and z ...
> (local-set-key "Y" (lambda () (interactive) (insert "Z")))

Commands needn't be functions -- they could be simple keyboard macros,
eg:  (global-set-key "Y" "Z")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]