Aspell does not work anymore with the new Emacs 26.1 for Windows: hunspell to the rescue

I downloaded the newest version of Emacs (26.1) from Vincent Goublet’s homepage., and run into the problem that my spell-checking of documents doesn’t work anymore. I use ispell and Aspell but the new version of Emacs needs Aspell 6.0 which is not available for Windows. After some googling, I found a good replacement: hunspell. Now I can check my spelling again:

image

I added the following code in my .emacs file (I found it somewhere on the internet).


(setq ispell-program-name "C:/Program Files (x86)/hunspell/bin/hunspell")
;; "en_US" is key to lookup in `ispell-local-dictionary-alist`, please note it will be passed   to hunspell CLI as "-d" parameter
(setq ispell-local-dictionary "en_US") 
(setq ispell-local-dictionary-alist
     '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_US") nil utf-8)))

Leave a Reply

Your email address will not be published. Required fields are marked *

*