mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user