From: Sven Joachim <svenjoac@gmx.de>
To: info-gnus-english@gnu.org
Subject: Changing ispell dictionary
Date: Fri, 10 Aug 2007 16:51:44 +0200 [thread overview]
Message-ID: <87mywzqw73.fsf@gmx.de> (raw)
Hi,
I am looking for an efficient way to change the ispell dictionary based
on the newsgroup or mail recipients I'm posting/mailing to. The
Manual says in section 5.4, "Mail and Post":
,----
| If you want to change the `ispell' dictionary based on what group
| you're in, you could say something like the following:
|
| (add-hook 'gnus-select-group-hook
| (lambda ()
| (cond
| ((string-match
| "^de\\." (gnus-group-real-name gnus-newsgroup-name))
| (ispell-change-dictionary "deutsch"))
| (t
| (ispell-change-dictionary "english")))))
`----
This does not work, unfortunately. It will only change the dictionary
_local_ in the summary buffer, but not in the buffer for the message I
am going to compose. Right now I work around this by using
(ispell-change-dictionary "deutsch" 1) to change the global
dictionary instead, but I find this suboptimal.
Does somebody have a bright idea how to automatically change the local
dictionary in the message buffer (assuming that a newsgroup or mail
recipient is known; of course it cannot be guessed if I just type
C-x m outside of Gnus)? There are various *message-*hook variables
and I don't know which to choose.
Cheers,
Sven
next reply other threads:[~2007-08-10 14:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 14:51 Sven Joachim [this message]
2007-08-10 19:49 ` Tassilo Horn
2007-08-10 20:20 ` Tassilo Horn
2007-08-10 20:30 ` Reiner Steib
2007-08-10 21:09 ` Tassilo Horn
[not found] ` <mailman.4635.1186780214.32220.info-gnus-english@gnu.org>
2007-08-11 18:10 ` Sven Joachim
2007-08-11 18:59 ` Tassilo Horn
[not found] ` <mailman.4633.1186777273.32220.info-gnus-english@gnu.org>
2007-08-11 10:31 ` Hadron
2007-10-19 22:37 ` sven.bretfeld
2007-11-03 23:16 ` leandro noferini
2007-11-04 19:35 ` Sven Bretfeld
2007-11-05 16:17 ` leandro noferini
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mywzqw73.fsf@gmx.de \
--to=svenjoac@gmx.de \
--cc=info-gnus-english@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 NNTP newsgroup(s).