As Matthias Teege wrote:
> > wenn ich emacs im latex-mode verwende, werden die
> > anführungsstriche " durch '' ersetzt.
> Allerdings läßt sich das mit den Anführungszeichen auch einfacher
> lösen.
Aus meinem .emacs (im Original mappe ich auch noch ä auf "a usw.):
;; simply copied from tex-mode.el, only replaced quotation char's
;; should be bound to M-"
(defun TeX-german-insert-quote (arg)
"Insert \"`, \"' (LaTeX German quotation) or \" according
to preceding character.
With prefix argument, always insert \" characters."
(interactive "P")
(if arg
(let ((count (prefix-numeric-value arg)))
(if (listp arg)
(self-insert-command 1) ;C-u always inserts just one
(self-insert-command count)))
(insert
(cond
((or (bobp)
(save-excursion
(forward-char -1)
(looking-at "[ \t\n]\\|\\s(")))
"\"`")
((= (preceding-char) ?\\)
?\")
(t "\"'")))))
(defun my-latex-mode ()
(local-unset-key "\"") ;restore self-insert for dblquote
; ...
(local-set-key "\M-\"" 'TeX-german-insert-quote))
(setq latex-mode-hook 'my-latex-mode)
-- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)Received on Sun 27 Sep 1998 - 20:20:39 CEST