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:
parent
e290c6e03b
commit
e127819d88
1 changed files with 2 additions and 4 deletions
|
@ -13,10 +13,8 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
|
||||||
ispell-extr-args '("--dont-tex-check-comments"))
|
ispell-extr-args '("--dont-tex-check-comments"))
|
||||||
|
|
||||||
(after! ispell
|
(after! ispell
|
||||||
(cond ((executable-find "hunspell")
|
(when (equal (file-name-base ispell-program-name) "aspell")
|
||||||
(setq ispell-program-name "hunspell"))
|
(add-to-list 'ispell-extra-args "--sug-mode=ultra")))
|
||||||
((executable-find "aspell")
|
|
||||||
(add-to-list 'ispell-extra-args "--sug-mode=ultra"))))
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! flyspell ; built-in
|
(def-package! flyspell ; built-in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue