Q: How can I tell isearch
to ignore the contents of folded blocks by default in org-mode
buffers?
More specifically, I'd like isearch
to ignore contents of comment blocks and drawers: When authoring documents in org-mode
I often use comment blocks and custom drawers to store different kinds of notes about the text I am writing. I keep them folded by default to make sure their contents don't distract me:
(add-hook 'org-mode-hook #'org-hide-block-all)
This works really well, but won't stop org-mode
from expanding these blocks if they contain matches for a string I am isearch
ing.