feature/spellcheck: auto-check buffer on flycheck-mode
This commit is contained in:
parent
45c2221316
commit
3ff85f6f37
1 changed files with 7 additions and 1 deletions
|
@ -5,7 +5,13 @@
|
|||
:config
|
||||
(setq ispell-program-name (executable-find "aspell")
|
||||
ispell-list-command "--list"
|
||||
ispell-extr-args '("--dont-tex-check-comments")))
|
||||
ispell-extr-args '("--dont-tex-check-comments"))
|
||||
|
||||
(defun +spellcheck|automatically ()
|
||||
"Spellcheck the buffer when `flyspell-mode' is enabled."
|
||||
(when flyspell-mode
|
||||
(flyspell-buffer)))
|
||||
(add-hook 'flyspell-mode-hook #'+spellcheck|automatically))
|
||||
|
||||
|
||||
(def-package! flyspell-correct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue