tools/flyspell: add +prog flag #1418
Enables flyspell-prog-mode on prog-mode-hook.
This commit is contained in:
parent
c3cb7c5000
commit
10cef7a887
1 changed files with 3 additions and 0 deletions
|
@ -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."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue