I have my hunspell dictionaries at C:\hunspell\
. It contains .dic
and .aff
files for three languages: en_GB
, en_US
, and nb_NO
. The descriptions I find on the web about how to make hunspell work in Emacs make me confused.
What is the minimum code I need in my init file to be able to use these three hunspell dictionaries in Emacs?
I have tried the following code suggested by one web site:
(add-to-list 'exec-path "C:/hunspell/bin/")
(setq ispell-program-name (locate-file "hunspell"
exec-path exec-suffixes 'file-executable-p))
But when wanting to change dictionary by M-x ispell-change-dictionary
, I get the following message:
ispell-phaf: No matching entry for nil.