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?
Best Answer
To check if the dictionary is listed in the path run
hunspell -D
. It should output something along those lines:Next, add your preferred dictionaries to
ispell-local-dictionary-alist
in your.emacs
fileIn addition to that you can define a function to switch between the german and english dictionaries and bind it to
C-c d
for example