[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ispell default dictionary keeps reverting to "american"
From: |
Peter Dyballa |
Subject: |
Re: ispell default dictionary keeps reverting to "american" |
Date: |
Sun, 2 Sep 2007 20:55:50 +0200 |
Am 02.09.2007 um 19:27 schrieb Kevin Brubeck Unhammer:
Have you checked whether the modes of the buffers that use american
for ispell do *not* change ispell-dictionary? Have you checked
whether your buffer do *not* set ispell-dictionary locally? Are you
sure that your setting of ispell-dictionary in ~/.emacs is executed?
Some (message ...) might help.
I tried emptying my .emacs from all but (ispell-change-dictionary
"nynorsk" t), no change... the dictionary starts being "nynorsk" and
changes to "american" after one ispell-check.
It's not the complete answer and analysis.
It's obviously secure to put a statement like this one
(defadvice load (before debug-log activate)
(message "(Tipp von Kai G) Lade jetzt: %s" (ad-get-arg 0)))
into ~/.emacs, because you describe that your setting of ispell's
dictionary is valid until you load some file? Or does it already
happen when you spell-check a "built-in" buffer like *scratch*,
*Buffer List*, or *Messages*. So let's make the test more complete!
Make ~/.emacs report what the ispell-program-name is. In *shell*
buffer or some other terminal determine the PID of GNU Emacs. Now
start to spell-check some built-in buffer and don't quit! In that
other terminal either use ps or pstree to determine all processes
that GNU Emacs has spawned. Is ispell or aspell (the new default)
doing the spell-check?
With the statement above you will be able to see which files of Elisp
code are loaded when you load some text file. When you put the
statement into the system init file, you can see a bit more of Elisp
file loading.
When you've found that it's aspell (the new default) and not ispell,
that is spell-checking, you could try something similiar to this:
(setq ispell-program-name "ispell")
; (setq ispell-program-name "aspell")
;
(if (string= "aspell" ispell-program-name)
(progn
; (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)
(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))))
(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")))))
--
Greetings
Pete
~ o
~_\\_/\
~ O O