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

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

Re: remapping keys


From: Sam Peterson
Subject: Re: remapping keys
Date: Tue, 19 Feb 2008 16:32:32 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Seldon <address@hidden> on Tue, 19 Feb 2008 17:33:53 +0100 didst
step forth and proclaim thus:

> Juanma wrote:
>> On Monday 18 February 2008 18:00, Seldon wrote:
>>> [...]
>>>> I personally prefer to do those kinds of "inconvenient keyboard" things
>>>> globally by choosing another keyboard layout (e.g. with
>>>> gnome-keyboard-properties).
>>> I would prefer a more selective approach, remapping only the keys I need.
>>
>> Try with function keyboard-translate.
>>
> I read the documentation, but I didn't understood how to call or use
> this function.
>
> I think I will follow your advice and switch to an US layout.
>
> Bye.

Wow, a whole thread on remapping keys, and NOBODY mentions
global-set-key or local-set-key.

;; just an example, change the keys to whatever you like
(global-set-key "{" '(lambda () (interactive) (insert "a")))

Many will argue that keyboard translate is better.  Whatever works...

-- 
Sam Peterson
skpeterson At nospam ucdavis.edu
"if programmers were paid to remove code instead of adding it,
software would be much better" -- unknown


reply via email to

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