From 37739a2501452b90d6ce7abb04ef247f49c981d6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 28 Jul 2019 22:55:18 +0200 Subject: [PATCH] tools/flyspell: don't spellcheck org blocks --- modules/tools/flyspell/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/tools/flyspell/config.el b/modules/tools/flyspell/config.el index 09bace57a..3f1601fd1 100644 --- a/modules/tools/flyspell/config.el +++ b/modules/tools/flyspell/config.el @@ -14,6 +14,12 @@ Since spellchecking can be slow in some buffers, this can be disabled with: (after! ispell (add-to-list 'ispell-extra-args "--dont-tex-check-comments") + ;; Don't spellcheck org blocks + (pushnew! ispell-skip-region-alist + '(":\\(PROPERTIES\\|LOGBOOK\\):" . ":END:") + '("#\\+BEGIN_SRC" . "#\\+END_SRC") + '("#\\+BEGIN_EXAMPLE" . "#\\+END_EXAMPLE")) + ;; Enable either aspell or hunspell. ;; If no module flags are given, enable either aspell or hunspell if their ;; binary is found.