From 639349d0edb97143b7493024da3be412a68beea1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 2 Aug 2018 21:44:09 +0200 Subject: [PATCH] feature/spellcheck: add hunspell/aspell support --- modules/feature/spellcheck/config.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/feature/spellcheck/config.el b/modules/feature/spellcheck/config.el index dce736c5f..496f512b1 100644 --- a/modules/feature/spellcheck/config.el +++ b/modules/feature/spellcheck/config.el @@ -12,6 +12,13 @@ Since spellchecking can be slow in some buffers, this can be disabled with: ispell-list-command "--list" 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")))) + + (def-package! flyspell ; built-in :defer t :init (add-hook 'flyspell-mode-hook #'+spellcheck|immediately)