Skip to content

Instantly share code, notes, and snippets.

View ericbmerritt's full-sized avatar

Eric Merritt ericbmerritt

View GitHub Profile
ericbmerritt / gist:1019166
Created June 10, 2011 16:08
highlight extent
View gist:1019166
(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)