Getting spelling to work in Emacs on Windows

Getting spelling to work in Emacs on Windows

Emacs does not come with a bundled spell-checker

aspell does not work in Windows

The only real option is hunspell

https://sourceforge.net/projects/ezwinports/files/hunspell-1.3.2-3-w32-bin.zip/download

add "C:/hunspell-1.3.2-3-w32-bin/bin" to exec-path

  ;; American spelling

    (setq ispell-program-name "c:/hunspell-1.3.2-3-w32-bin/bin/hunspell.exe")
    (setq ispell-local-dictionary "en_US")
    (setq ispell-local-dictionary-alist
    '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_US") nil utf-8)))
    (when (boundp 'ispell-hunspell-dictionary-alist)
      (setq ispell-hunspell-dictionary-alist ispell-local-dictionary-alist))
    (setq hunspell-default-dict "en_US")

    ;; British spelling

    (setq ispell-program-name "c:/hunspell-1.3.2-3-w32-bin/bin/hunspell.exe")
    (setq ispell-local-dictionary "en_GB")
    (setq ispell-local-dictionary-alist
    '(("en_GB" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_GB") nil utf-8)))
    (when (boundp 'ispell-hunspell-dictionary-alist)
      (setq ispell-hunspell-dictionary-alist ispell-local-dictionary-alist))
    (setq hunspell-default-dict "en_GB")

Return to Home