mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/flyspell: add +prog flag #1418
Enables flyspell-prog-mode on prog-mode-hook.
This commit is contained in:
@ -49,6 +49,9 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
|
|||||||
(progn ; built-in
|
(progn ; built-in
|
||||||
(setq flyspell-issue-welcome-flag nil)
|
(setq flyspell-issue-welcome-flag nil)
|
||||||
|
|
||||||
|
(when (featurep! +prog)
|
||||||
|
(add-hook 'prog-mode-hook #'flyspell-prog-mode))
|
||||||
|
|
||||||
(defun +flyspell|inhibit-duplicate-detection-maybe ()
|
(defun +flyspell|inhibit-duplicate-detection-maybe ()
|
||||||
"Don't mark duplicates when style/grammar linters are present.
|
"Don't mark duplicates when style/grammar linters are present.
|
||||||
e.g. proselint and langtool."
|
e.g. proselint and langtool."
|
||||||
|
Reference in New Issue
Block a user