tools/flyspell: don't spellcheck org blocks

This commit is contained in:
Henrik Lissner 2019-07-28 22:55:18 +02:00
parent a89c004551
commit 37739a2501
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -14,6 +14,12 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
(after! ispell (after! ispell
(add-to-list 'ispell-extra-args "--dont-tex-check-comments") (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. ;; Enable either aspell or hunspell.
;; If no module flags are given, enable either aspell or hunspell if their ;; If no module flags are given, enable either aspell or hunspell if their
;; binary is found. ;; binary is found.