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

Re: On-the-fly Rechtsreibprüfung unter Emacs



On Mon, 8 Dec 2003 20:17:48 +0100
Matthias Fechner <idefix@fechner.net> wrote:

> Das Problem habe ich zum Glück nicht mehr, aber es funktioniert bei
> mir auch noch nicht so richtig(nutze es allerdings mit xemacs, was
> denke ich aber keinen Unterschied machen wird).
Mit einer kleinen Änderung an den Einstellungen funktioniert es bei mir
jetzt wunderbar, ich muß german-new8 durch deutsch ersetzen, da die
Wörterbücher bei aspell anders benannt sind als bei ispell:

;; Initialize spell checking
(setq-default ispell-program-name "aspell")
(set-default 'ispell-change-directory "ndeutsch8-15")
(set-default 'ispell-local-dictionary "ndeutsch8-15")
;; ===================================================================
;; ISPELL
;; ===================================================================
(require 'ispell)
(add-to-list 'ispell-dictionary-alist
	     '("ndeutsch8-15"
	       "[a-zA-Z\304\326\334\344\366\337\374]"
	       "[^a-zA-Z\304\326\334\344\366\337\374]"
	       "[']" t
	       ("-C" "-d" "german")
	       "~latin1" iso-8859-15))
;; ===================================================================
;; ISPELL End
;; ===================================================================

;; ===================================================================
;; FLYSPELL
;; ===================================================================
(add-hook 'flyspell-mode-hook
	  (function (lambda ()
		      (setq ispell-local-dictionary "ndeutsch8-15")
		      )))

(autoload 'flyspell-mode "flyspell"
  "On-the-fly spelling checking" t)
(autoload 'global-flyspell-mode "flyspell"
  "On-the-fly spelling" t)


;; ===================================================================
;; FLYSPELL End
;; ===================================================================

(add-hook 'htm-mode-hook 'flyspell-mode)
(add-hook 'latex-mode-hook 'flyspell-mode)
(add-hook 'tex-mode-hook 'flyspell-mode)
(add-hook 'text-mode-hook 'flyspell-mode)
(add-hook 'html-mode-hook 'flyspell-mode)
(add-hook 'post-mode-hook 'flyspell-mode)
(add-hook 'message-mode-hook 'flyspell-mode)



Reply to: