If you’ve every tried to do some spell-checking in org-mode you know how
finicky that can be. Ispell is happy to check absolutely anything, even code
blocks and property drawers! When you’re blogging about code-snippets from an
org file this annoyance quickly turns into irritation. Here’s how you fix it.
(defunendless/org-ispell()"Configure `ispell-skip-region-alist' for `org-mode'."(make-local-variable'ispell-skip-region-alist)(add-to-list'ispell-skip-region-alist'(org-property-drawer-re))(add-to-list'ispell-skip-region-alist'("~""~"))(add-to-list'ispell-skip-region-alist'("=""="))(add-to-list'ispell-skip-region-alist'("^#\\+BEGIN_SRC"."^#\\+END_SRC")))(add-hook'org-mode-hook#'endless/org-ispell)
Making Ispell work with org-mode
24 Aug 2015, by Artur Malabarba.If you’ve every tried to do some spell-checking in
org-mode
you know how finicky that can be. Ispell is happy to check absolutely anything, even code blocks and property drawers! When you’re blogging about code-snippets from an org file this annoyance quickly turns into irritation. Here’s how you fix it.Tags: keybind, init.el, emacs,
Org-mode subtrees and file-local variables »
« A comment-or-uncomment-sexp command
Related Posts
A few paredit keys that take over the world in keybind
Fill and unfill paragraphs with a single key in keybind
Disable Mouse only inside Emacs in keybind
Content © 2019, All rights reserved. Icons under CC3.0.