feature/spellcheck: add hunspell/aspell support

This commit is contained in:
Henrik Lissner 2018-08-02 21:44:09 +02:00
parent f16597ec72
commit 639349d0ed
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -12,6 +12,13 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
ispell-list-command "--list" ispell-list-command "--list"
ispell-extr-args '("--dont-tex-check-comments")) 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 (def-package! flyspell ; built-in
:defer t :defer t
:init (add-hook 'flyspell-mode-hook #'+spellcheck|immediately) :init (add-hook 'flyspell-mode-hook #'+spellcheck|immediately)