auto-dictionary-mode tries to guess the buffer's text language and adjusts flyspell automatically. Currently English, German, French, Spanish, Swedish, Slovenian, Hungarian, Romanian and Portuguese are somewhat supported. Additional languages are easily added. (Please contact me, if you'd like to contribute.)
It is also possible to insert text according to the current dictionary and have it updated automatically when it changes. This is great for your text templates and signatures.
The package might not work as expected in Emacs 21. Emacs 22 is recommended.
Add the following to your .emacs file:
(require 'auto-dictionary) (add-hook 'flyspell-mode-hook (lambda () (auto-dictionary-mode 1)))
Just type. When you stop for a few moments dictionary-switcher-mode will evaluate the content. If you're unhappy with the results, call adict-change-dictionary to change it. Use switch-language-hook to hook into these changes.
If you have any feedback, please email me, or visit this package's page at the Emacs wiki.