unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sven Joachim <svenjoac@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: ispell default dictionary keeps reverting to "american"
Date: Sun, 02 Sep 2007 13:56:54 +0200	[thread overview]
Message-ID: <87642t2sc9.fsf@gmx.de> (raw)
In-Reply-To: 1188730937.948851.317630@22g2000hsm.googlegroups.com

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	other threads:[~2007-09-02 11:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-02 11:02 ispell default dictionary keeps reverting to "american" Kevin Brubeck Unhammer
2007-09-02 11:56 ` Sven Joachim [this message]
2007-09-02 17:15   ` Kevin Brubeck Unhammer
2007-09-02 17:43     ` Sven Joachim
2007-09-03  8:16       ` Kevin Brubeck Unhammer
2007-09-02 12:51 ` Peter Dyballa
     [not found] ` <mailman.168.1188737518.18990.help-gnu-emacs@gnu.org>
2007-09-02 17:27   ` Kevin Brubeck Unhammer
2007-09-02 18:55     ` Peter Dyballa
     [not found]     ` <mailman.180.1188759356.18990.help-gnu-emacs@gnu.org>
2007-09-03  8:24       ` Kevin Brubeck Unhammer
2007-09-03  9:39         ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87642t2sc9.fsf@gmx.de \
    --to=svenjoac@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).