I am using Emacs 26.1 on MacOS 10.14.2. I am trying to use hunspell
with 3 dictionaries that are installed in ~/Library/Spelling
but when I start Emacs I got the following error: Wrong type argument: stringp, nil
;; Portuguese dictionary
(with-eval-after-load "ispell"
(setq ispell-program-name "hunspell")
(setq ispell-dictionary "en_GB,en_US,pt_PT")
;; ispell-set-spellchecker-params has to be called
;; before ispell-hunspell-add-multi-dic will work
(ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "en_GB,en_US,pt_PT"))