diff --git a/modules/tools/flyspell/config.el b/modules/tools/flyspell/config.el index 940666039..508f240f4 100644 --- a/modules/tools/flyspell/config.el +++ b/modules/tools/flyspell/config.el @@ -49,6 +49,9 @@ Since spellchecking can be slow in some buffers, this can be disabled with: (progn ; built-in (setq flyspell-issue-welcome-flag nil) + (when (featurep! +prog) + (add-hook 'prog-mode-hook #'flyspell-prog-mode)) + (defun +flyspell|inhibit-duplicate-detection-maybe () "Don't mark duplicates when style/grammar linters are present. e.g. proselint and langtool."