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: Kevin Rodgers
Subject: Re: Changing key bindings of printable chars
Date: Fri, 25 Jun 2004 12:22:30 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

John Paul Wallington wrote:
> Michael Slass <miknrene@drizzle.com> writes:
>>"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
> [...]
>
>>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")

Yes, but that combined with (global-set-key "Z" "Y") to meet Paul's
requirements leads to infinite recursion.

--
Kevin Rodgers



reply via email to

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