help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: ispell default dictionary keeps reverting to "american"


From: Sven Joachim
Subject: Re: ispell default dictionary keeps reverting to "american"
Date: Sun, 02 Sep 2007 13:56:54 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Kevin Brubeck Unhammer <pixiemotion@gmail.com> writes:

> How do I make my default ispell dictionary -- for all files and file
> types -- something other than "american"?
>
> Using ispell-change-dictionary in .emacs just works on the buffers
> loaded before that line in .emacs, for new buffers it's still
> "american". I can change the ispell-dictionary variable as much as I
> want, this has no effect on subsequent ispells, although if I ispell-
> change-dictionary manually, this works in the open buffers. But how do
> I change it for all _new_ buffers too?
>
> Rather desperately, I tried customizing the ispell-dictionary-alist,
> putting my dictionary ("nynorsk") first, no luck there. So I tried
> (setq ispell-dictionary "nynorsk") in my .emacs, but whenever I try
> spell-checking a word, ispell reverts this variable to "american" (I
> eval'd it before and after M-$).

Look at ispell-change-dictionary's docstring:

,----
| ispell-change-dictionary is an interactive compiled Lisp function in 
`ispell.el'.
| It is bound to <menu-bar> <tools> <spell> <ispell-change-dictionary>.
| (ispell-change-dictionary dict &optional arg)
| 
| Change to dictionary dict for Ispell.
| With a prefix arg, set it "globally", for all buffers.
| Without a prefix arg, set it "locally", just for this buffer.
`----

So I'd presume that C-u M-x ispell-change-dictionary (interactively)
or (setq ispell-change-dictionary "nynorsk" t) (in your .emacs) do the
trick.  Does that work?

Cheers,
       Sven


reply via email to

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