mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feature/spellcheck: minor reformatting
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user