Don't override ispell-program-name

Better not to override possible user customizations, only adjust
ispell-extra-args in case of aspell, to improve its performance.
This commit is contained in:
Henrik Lissner 2018-08-10 23:41:55 +02:00
parent e290c6e03b
commit e127819d88
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -13,10 +13,8 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
ispell-extr-args '("--dont-tex-check-comments"))
(after! ispell
(cond ((executable-find "hunspell")
(setq ispell-program-name "hunspell"))
((executable-find "aspell")
(add-to-list 'ispell-extra-args "--sug-mode=ultra"))))
(when (equal (file-name-base ispell-program-name) "aspell")
(add-to-list 'ispell-extra-args "--sug-mode=ultra")))
(def-package! flyspell ; built-in