From e127819d889c74b018fe2ecdc82e8840dee17e7c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 10 Aug 2018 23:41:55 +0200 Subject: [PATCH] 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. --- modules/feature/spellcheck/config.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/feature/spellcheck/config.el b/modules/feature/spellcheck/config.el index 496f512b1..40cb910f5 100644 --- a/modules/feature/spellcheck/config.el +++ b/modules/feature/spellcheck/config.el @@ -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