tools/flyspell: don't spellcheck org blocks
This commit is contained in:
parent
a89c004551
commit
37739a2501
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue