aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-20 23:31:58 -0500
committerCraig Jennings <c@cjennings.net>2026-07-20 23:31:58 -0500
commit2f2d8b1c4f4eae6707c472b2287c72c3bb796309 (patch)
tree76cb5fea404ee2ae4a71b7d67761b024a6b9fc42 /modules
parentcdafac63b1202e515817b86b1f38a9727d36650d (diff)
downloaddotemacs-2f2d8b1c4f4eae6707c472b2287c72c3bb796309.tar.gz
dotemacs-2f2d8b1c4f4eae6707c472b2287c72c3bb796309.zip
fix(flyspell): escape the + so org src blocks are actually skipped
The skip entry used "#+" (one-or-more #), which matches no real begin_src line, so ispell spell-checked inside every org code block.
Diffstat (limited to 'modules')
-rw-r--r--modules/flyspell-and-abbrev.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/flyspell-and-abbrev.el b/modules/flyspell-and-abbrev.el
index ebe4898e..d0cdd09c 100644
--- a/modules/flyspell-and-abbrev.el
+++ b/modules/flyspell-and-abbrev.el
@@ -73,8 +73,10 @@
;; personal directory goes with sync'd files
(setq ispell-personal-dictionary
(concat org-dir "aspell-personal-dictionary"))
- ;; skip code blocks in org mode
- (add-to-list 'ispell-skip-region-alist '("^#+BEGIN_SRC" . "^#+END_SRC")))
+ ;; Skip code blocks in org mode. The # must be literal and the + escaped:
+ ;; "#+" in regex means one-or-more #, which matches no real begin_src line,
+ ;; so ispell used to spell-check inside every org code block.
+ (add-to-list 'ispell-skip-region-alist '("^#\\+BEGIN_SRC" . "^#\\+END_SRC")))
(use-package flyspell
:ensure nil ;; built-in