Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Changing ispell dictionary
@ 2007-08-10 14:51 Sven Joachim
  2007-08-10 19:49 ` Tassilo Horn
  2007-10-19 22:37 ` sven.bretfeld
  0 siblings, 2 replies; 12+ messages in thread
From: Sven Joachim @ 2007-08-10 14:51 UTC (permalink / raw)
  To: info-gnus-english

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-11-05 16:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 14:51 Changing ispell dictionary Sven Joachim
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

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).