feature/spellcheck: minor reformatting
This commit is contained in:
parent
7c4a353228
commit
5f1618e7a1
1 changed files with 4 additions and 6 deletions
|
@ -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)")
|
(setq-hook! 'LaTeX-mode-hook +spellcheck-immediately nil)")
|
||||||
|
|
||||||
;; `ispell'
|
;; `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
|
(def-package! flyspell ; built-in
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
:init (add-hook 'flyspell-mode-hook #'+spellcheck|immediately)
|
||||||
(add-hook 'flyspell-mode-hook #'+spellcheck|immediately)
|
|
||||||
:config
|
:config
|
||||||
(setq ispell-list-command "--list"
|
|
||||||
ispell-extr-args '("--dont-tex-check-comments"))
|
|
||||||
|
|
||||||
(defun +spellcheck|immediately ()
|
(defun +spellcheck|immediately ()
|
||||||
"Spellcheck the buffer when `flyspell-mode' is enabled."
|
"Spellcheck the buffer when `flyspell-mode' is enabled."
|
||||||
(when (and flyspell-mode +spellcheck-immediately)
|
(when (and flyspell-mode +spellcheck-immediately)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue