tools/flyspell: add +prog flag #1418

Enables flyspell-prog-mode on prog-mode-hook.
This commit is contained in:
Henrik Lissner 2019-05-19 01:37:24 -04:00
parent c3cb7c5000
commit 10cef7a887
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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."