nschum / auto-dictionary-mode

Emacs: automatic dictionary switcher for flyspell
http://nschum.de/src/emacs/auto-dictionary/
28 stars 13 forks source link

message-mode is always set to English #11

Closed semente closed 4 years ago

semente commented 8 years ago

Looks like my message-mode is always set to use English dictionary. Is there any work around to fix this?

sten0 commented 4 years ago

I have the following set, and detection works correctly

(add-hook 'text-mode-hook 'flyspell-mode)
(add-hook 'flyspell-mode-hook '(lambda () (auto-dictionary-mode 1)))

If this also works for you, maybe it could be documented? P.S. I know adding anonymous functions as hooks is bad style ;-)

semente commented 4 years ago

Hey @sten0, I'm not using auto-dictionary-mode anymore but I'm pretty sure I had a similar setup. Probably it was a bug in my setup. Thank you