diff --git a/modules/feature/spellcheck/config.el b/modules/feature/spellcheck/config.el index ceee1c467..bf04c03f3 100644 --- a/modules/feature/spellcheck/config.el +++ b/modules/feature/spellcheck/config.el @@ -8,16 +8,14 @@ Since spellchecking can be slow in some buffers, this can be disabled with: (setq-hook! 'LaTeX-mode-hook +spellcheck-immediately nil)") ;; `ispell' -(setq ispell-dictionary "english") +(setq ispell-dictionary "english" + ispell-list-command "--list" + ispell-extr-args '("--dont-tex-check-comments")) (def-package! flyspell ; built-in :defer t - :init - (add-hook 'flyspell-mode-hook #'+spellcheck|immediately) + :init (add-hook 'flyspell-mode-hook #'+spellcheck|immediately) :config - (setq ispell-list-command "--list" - ispell-extr-args '("--dont-tex-check-comments")) - (defun +spellcheck|immediately () "Spellcheck the buffer when `flyspell-mode' is enabled." (when (and flyspell-mode +spellcheck-immediately)