[Top][All Lists]

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

Re: emacs ispell / flyspell

From: Peter Dyballa
Subject: Re: emacs ispell / flyspell
Date: Tue, 1 Jan 2008 14:53:56 +0100

Am 01.01.2008 um 13:06 schrieb Martin Jørgensen:

Aren't there many people here using emacs for making latex-documents?

Does it work to configure ispell to be aware of TeX? I.e.:

      (setq ispell-program-name "ispell")
;     (setq ispell-program-name "aspell")
;       Für Französisch:
;      (require 'ispell)
;      (defun ispell-get-otherchars ()
; (replace-regexp-in-string "-" "" (ispell-get-decoded-string 3)))
      (if (string= "aspell" ispell-program-name)
; (setq ispell-extra-args "--norm-form=comp --norm-required -- run-together")
;         (setq ispell-dictionary "en_GB-ise-w_accents")
          (setq ispell-dictionary "deutsch")
(set-default 'ispell-local-dictionary ispell- dictionary);"deutsch" (add-hook 'TeX-language-en-hook (function (lambda () (ispell-change-dictionary "british")))) (add-hook 'TeX-language-de-hook (function (lambda () (ispell-change-dictionary ispell-dictionary))));"deutsch"
          (message "Alles für «a»spell")
          (setq ispell-dictionary "german8")
(add-hook 'TeX-language-en-hook (function (lambda () (ispell-change-dictionary "british")))) (add-hook 'TeX-language-de-hook (function (lambda () (ispell-change-dictionary "deutsch8"))))
          (message "Alles für »i«spell")
(add-hook 'LaTeX-mode-hook (function (lambda () (setq ispell- extra-args '("-t")))))

There is also the variable ispell-skip-region-alist ... it looks promising!



Wasting time is an important part of living.

reply via email to

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