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

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

rebinding iso keys


From: josh
Subject: rebinding iso keys
Date: 2 Apr 2006 05:33:11 -0700
User-agent: G2/0.2

Hi,

I have a german keyboard and would like to rebind the characters "ä"
"ö"
"ü" and also "ß" to functions, replacing the self-insert function,
but I
can't find the right vector code or whatever for the keys.

For example, I've tried the following variations (from my .emacs):

(defun TeX-parenth () (interactive) (TeX-Inserting ?\\ "("  "()"))
(defun TeX-a-umlaut () (interactive) (insert "\"") (insert "a"))

(add-hook 'LaTeX-mode-hook
          '(lambda ()
             ;; Begin bracket closing
             (local-set-key  "(" 'TeX-parenth)

             (local-set-key "ä" 'TeX-a-umlaut)
             (local-set-key [?\xe4] 'TeX-a-umlaut)   ;iso ?
             (local-set-key [?\xc384] 'TeX-A-umlaut) ;unicode ?

))

It works for the parenthesis, but not for "ä", and actually, I would
like to
keep my .emacs in ascii, so I don't really even want the "ä"
variation.

Two questions:
1) what am I doing wrong and

2)How can I capture the right vector code that the keyboard sends to
emacs when I press "ä", so I can bind it properly?


Thanks,

Josh



reply via email to

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