By default, the results of running M-x ispell-buffer
in org-mode are
very disappointing.
Ispell looks inside
:PROPERTY:
drawers, which commonly contain things like:ID: 797495bd-581b-4a42-883b-c2a55a08f08a
It tries to correct org statements! For instance, it complains about the
SRC
in#+BEGIN_SRC emacs-lisp
It goes inside org-blocks. I suppose this might be useful for blocks like
#+BEGIN_QUOTE
, but in source code blocks that’s just silly.
Is there a package that fixes all this?
I’d love to spell-check my writing but the amount of false-positives I’m getting makes it unfeasible.
If it matters, the OS's spell checker is aspell.
(get 'org-mode 'flyspell-mode-predicate)
), but I'm not sure how that could be generalised forispell-buffer
.ispell-parser
, so flyspell's predicate might work well there with a wrapper around it.#+
or in source code blocks is not spell-checked. But normal text under headings is checked. I have these in my flyspell setup:(add-hook 'prog-mode-hook 'flyspell-prog-mode)
,(add-hook 'org-mode-hook 'turn-on-flyspell)
Can I prevent ispell from checking source blocks?
in orgmode.org/worg/org-faq.html ?