Skip to content

Instantly share code, notes, and snippets.

@ericbmerritt
ericbmerritt / gist:1019166
Created June 10, 2011 16:08
highlight extent
;;;###autoload
(defun ispell-hl-minor-mode (&optional arg)
"Toggle Ispell Highlight mode.
With prefix ARG, turn Ispell Highlight mode on if arg is positive.
In Ispell Highlight mode, changing the buffer contens will spell
the words around the cursor and highlight miss-spelled ones!"
(interactive "P")
(setq ispell-hl-minor-mode
(not (or (and (null arg) ispell-hl-minor-mode)