Use hunspell instead of aspell

This commit is contained in:
Dimitri Lozeve 2019-11-07 11:41:57 +01:00
parent 3df7402ebb
commit 8b1521f006

View file

@ -163,9 +163,12 @@
(use-package flyspell
:config
(setq ispell-program-name "aspell" ; use aspell instead of ispell
ispell-extra-args '("--sug-mode=ultra"))
(ispell-change-dictionary "british")
(setq ispell-program-name "hunspell")
(setq ispell-local-dictionary "en_GB")
(setq ispell-local-dictionary-alist
;; Please note the list `("-d" "en_US")` contains ACTUAL parameters passed to hunspell
;; You could use `("-d" "en_US,en_US-med")` to check with multiple dictionaries
'(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_GB") nil utf-8)))
(add-hook 'text-mode-hook #'flyspell-mode)
(add-hook 'prog-mode-hook #'flyspell-prog-mode)
(global-set-key (kbd "<f8>") 'ispell-word)