all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "josh" <jbuhl_nospam@gmx.de>
Subject: rebinding iso keys
Date: 2 Apr 2006 05:33:11 -0700	[thread overview]
Message-ID: <1143981191.612977.207370@i39g2000cwa.googlegroups.com> (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

             reply	other threads:[~2006-04-02 12:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-02 12:33 josh [this message]
2006-04-02 13:20 ` rebinding iso keys 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1143981191.612977.207370@i39g2000cwa.googlegroups.com \
    --to=jbuhl_nospam@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.