I seem to be unable to configure hunspell to work within emacs. I have hunspell 1.7.0 and emacs 25.3. Supposedly, emacs should be able to find hunspell by default, but it seems that it is unable to find all the dictionaries, actually, it seems to be only to find "default" dictionary and returns 'nil'.
I have tried the functions named on the comments here, namely
ispell-find-hunspell-dictionaries
and it seems that I do not have that function or I do not know how to acces it. Also I do now know how to acces
hunspell-dictionary-alist
and ispell-local-dictionary-alist
I also tried the solutions suggested elsewhere, namely to put something like this in .emacs:
;; Set $DICPATH to "$HOME/Library/Spelling" for hunspell.
(setenv
"DICPATH"
"/usr/share/hunspell")
;; Tell ispell-mode to use hunspell.
(setq-default
ispell-program-name
"/usr/bin/hunspell")
Or something like this:
(setq ispell-program-name (executable-find "hunspell")
ispell-dictionary "en_GB")
But they also seem not work. I still have no access to the dictionaries. I need to be able to choose dictionaries in english (both british and us variants), spanish (mexican), german (de) and portugues (Brazil). I cannot seem to grasp the solutions pointed here, and how to modify the extra entrances in .emacs for all the mentionated languages.