From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.help Subject: Re: ispell default dictionary keeps reverting to "american" Date: Sun, 02 Sep 2007 13:56:54 +0200 Message-ID: <87642t2sc9.fsf@gmx.de> References: <1188730937.948851.317630@22g2000hsm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188736845 23765 80.91.229.12 (2 Sep 2007 12:40:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2007 12:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 14:40:44 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRoko-0001yT-GT for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2007 14:40:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRokn-0001LS-C4 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2007 08:40:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!kanaga.switch.ch!switch.ch!news.belwue.de!LF.net!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: p548679ec.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1188734130 21841 84.134.121.236 (2 Sep 2007 11:55:30 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sun, 2 Sep 2007 11:55:30 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:iiHGL3ssms6r7JtWox082mekG0U= Original-Xref: shelby.stanford.edu gnu.emacs.help:151573 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47096 Archived-At: Kevin Brubeck Unhammer 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 . | (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