From: Thomas Gerds <gerds@fdm.uni-freiburg.de>
Subject: Re: german Umlaute in XEmacs
Date: Tue, 19 Aug 2003 13:09:12 +0200 [thread overview]
Message-ID: <7ehe4d29bb.fsf@rembrandt.fdm.uni-freiburg.de> (raw)
In-Reply-To: mailman.518.1061286908.29551.help-gnu-emacs@gnu.org
you could add the following lines to your init.el (or .emacs).
then M-x german-umlaut-mode toggles an appropriate minor mode.
;; ------------------ ;;
;; german-umlaut-mode ;;
;; ------------------ ;;
(defvar german-umlaut-mode nil)
(make-variable-buffer-local 'german-umlaut-mode)
(defvar german-umlaut-map (make-sparse-keymap)
"Keymap used for `german-umlaut-mode' commands.")
(defun german-umlaut-ae () (interactive) (insert "ä"))
(defun german-umlaut-Ae () (interactive) (insert "Ä"))
(defun german-umlaut-ue () (interactive) (insert "ü"))
(defun german-umlaut-Ue () (interactive) (insert "Ü"))
(defun german-umlaut-oe () (interactive) (insert "ö"))
(defun german-umlaut-Oe () (interactive) (insert "Ö"))
(defun german-umlaut-sz () (interactive) (insert "ß"))
(define-key german-umlaut-map "\M-s" 'german-umlaut-sz)
(define-key german-umlaut-map "\M-a" 'german-umlaut-ae)
(define-key german-umlaut-map "\M-A" 'german-umlaut-Ae)
(define-key german-umlaut-map "\M-u" 'german-umlaut-ue)
(define-key german-umlaut-map "\M-U" 'german-umlaut-Ue)
(define-key german-umlaut-map "\M-o" 'german-umlaut-oe)
(define-key german-umlaut-map "\M-O" 'german-umlaut-Oe)
(or (assq 'german-umlaut-mode minor-mode-map-alist)
(setq minor-mode-map-alist
(append minor-mode-map-alist
(list (cons 'german-umlaut-mode german-umlaut-map)))))
(defun german-umlaut-mode (&optional arg)
"A minor mode with easy access to german umlauts and german sz."
(interactive "P")
(setq german-umlaut-mode
(not (or (and (null arg) german-umlaut-mode)
(<= (prefix-numeric-value arg) 0)))))
(or (assq 'german-umlaut-mode minor-mode-alist)
(setq minor-mode-alist
(cons '(german-umlaut-mode " ö") minor-mode-alist)))
tomy
Raimund Kohl-Fuechsle <ray@nabuli.de> writes:
> Hello there,
>
> I recently switched from Gnu Emacs to XEmacs which wasn't bad at all
> :-) But (at least) one problem I don't know how to resolve: I use a
> US-Keyboard, and since I am living in germany I need to produce the
> german Umlaute. With Gnu Emacs that wasn't a problem at all. I just
> toggled the input method with C-\ and typing ->"a<- produced the german a
> with two dots above. This seems to not work with XEmacs. How is it
> done with XEmacs? Would anyone please help?
>
> Thank you in advance
>
> ray
--
no signature
next prev parent reply other threads:[~2003-08-19 11:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.518.1061286908.29551.help-gnu-emacs@gnu.org>
2003-08-19 11:09 ` german Umlaute in XEmacs Thomas Gerds
2003-08-19 11:09 ` Thomas Gerds [this message]
2003-08-19 16:14 ` Kevin Rodgers
2003-08-19 9:40 Raimund Kohl-Fuechsle
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=7ehe4d29bb.fsf@rembrandt.fdm.uni-freiburg.de \
--to=gerds@fdm.uni-freiburg.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.