I want to make hunspell
work with emacs24 and a german dictionary on a ubuntu 13.04-box.
To do so I installed hunspell
and hunspell-de
and added the following to my .emacs
file:
(setq ispell-program-name "hunspell")
(setq ispell-dictionary "deutsch8")
When I open a file in emacs and start flyspell-buffer
I get Starting new Ispell process [[hunspell::deutsch8]]
but it blocks the emacs buffer (mouse becomes a rotating disk indicating to wait) and works for endless without showing any results. So there must be something wrong with my config.
Without the second line it works, but only for english texts.
So what's the best way to setup hunspell
for emacs24
with a german dictionary on ubuntu 13.04? Are there any possible pitfalls?
(setq ispell-dictionary "deutsch8")
, you should use(setq ispell-dictionary "de_DE")
. Note, however, that this requires emacs 24.4 or greater. For earlier versions you need add the definitions toispell-local-dictionary-alist
as provided in the accepted answer. – Christian Herenz Nov 26 '18 at 19:38