all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rebinding iso keys
@ 2006-04-02 12:33 josh
  2006-04-02 13:20 ` Peter Dyballa
       [not found] ` <mailman.290.1143984033.2481.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 9+ messages in thread
From: josh @ 2006-04-02 12:33 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-04-13 20:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-02 12:33 rebinding iso keys josh
2006-04-02 13:20 ` Peter Dyballa
     [not found] ` <mailman.290.1143984033.2481.help-gnu-emacs@gnu.org>
2006-04-03 18:39   ` josh
2006-04-03 20:19     ` Peter Dyballa
     [not found]     ` <mailman.11.1144110174.9609.help-gnu-emacs@gnu.org>
2006-04-04 11:52       ` josh
2006-04-04 11:57         ` Miles Bader
     [not found]         ` <mailman.25.1144152547.9609.help-gnu-emacs@gnu.org>
2006-04-04 18:24           ` josh
2006-04-13 20:49             ` Oliver Scholz
2006-04-04 18:48         ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.