summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/init-flyspell.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/init-flyspell.el b/lisp/init-flyspell.el
index f2ca0e6..2ac7a3e 100644
--- a/lisp/init-flyspell.el
+++ b/lisp/init-flyspell.el
@@ -6,6 +6,11 @@
(latex-mode . flyspell-mode))
:bind (:map flyspell-mode-map
- ("C-c s" . flyspell-correct-word-before-point)))
+ ("C-c s" . flyspell-correct-word-before-point))
+
+ :config
+ ;; prefer hunspell
+ (when (executable-find "hunspell")
+ (setq ispell-program-name "hunspell")))
(provide 'init-flyspell)