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

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

Re: Cannot remap umlaut keys


From: Stefan Monnier
Subject: Re: Cannot remap umlaut keys
Date: Fri, 07 Nov 2003 18:21:42 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> I used to remap the umlaut keys in CC Mode but the following key
> bindings no longer work when Emacs 21.3.1 is run under X.  The
> bindings work if Emacs is started on the Linux console though.

> (add-hook 'c-mode-common-hook
>  '(lambda ()
>     (local-set-key [?\366] "{")    ; ö -> {
>     (local-set-key [?\344] "}")    ; ä -> }
>     (local-set-key [?\326] "[")    ; Ö -> [
>     (local-set-key [?\304] "]")    ; Ä -> ]
>     (local-set-key [?\337] "\\"))) ; ß -> \

?\366 is not the same as ö.  How about

   (local-set-key [ö] "{")

This might not always work, tho.  If it doesn't, then maybe your
locale is not set properly.  The problem is that the .emacs file
should be in the same coding-system as your keyboard (and the
keyboard's coding system under X is determined by your locale).


        Stefan


reply via email to

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