From 684bdda4b2c278953c9cad2d6167aabd6f6295e6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 24 Dec 2019 16:43:30 -0500 Subject: [PATCH] tools/flyspell: add +everywhere feature --- docs/index.org | 2 +- modules/tools/flyspell/config.el | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/index.org b/docs/index.org index 43173982b..32a4b7737 100644 --- a/docs/index.org +++ b/docs/index.org @@ -235,7 +235,7 @@ Small modules that give Emacs access to external tools & services. + [[file:../modules/tools/ein/README.org][ein]] - TODO + [[file:../modules/tools/eval/README.org][eval]] =+overlay= - REPL & code evaluation support for a variety of languages + flycheck - Live error/warning highlights -+ flyspell - Spell checking ++ flyspell =+everywhere= - Spell checking + gist - TODO + [[file:../modules/tools/lookup/README.org][lookup]] =+dictionary +docsets= - Universal jump-to & documentation lookup backend diff --git a/modules/tools/flyspell/config.el b/modules/tools/flyspell/config.el index 61fcd75a3..be54fa426 100644 --- a/modules/tools/flyspell/config.el +++ b/modules/tools/flyspell/config.el @@ -50,8 +50,9 @@ flyspell-issue-message-flag nil) (add-hook 'text-mode-hook #'flyspell-mode) - (when (featurep! +prog) - (add-hook 'prog-mode-hook #'flyspell-prog-mode)) + (when (featurep! +everywhere) + (add-hook! '(conf-mode-hook prog-mode-hook) + #'flyspell-prog-mode)) (add-hook! 'flyspell-mode-hook (defun +flyspell-inhibit-duplicate-detection-maybe-h ()