Last active
December 14, 2015 05:38
-
-
Save buzztaiki/5036281 to your computer and use it in GitHub Desktop.
highlight region.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun hilit (beg end) | |
| (interactive "r") | |
| (let ((ov (make-overlay beg end))) | |
| (overlay-put ov 'hilit-overlay t) | |
| (overlay-put ov 'face 'hi-blue)) | |
| (deactivate-mark)) | |
| (defun hilit-clear () | |
| (interactive) | |
| (loop for ov in (overlays-in (point-min) (point-max)) | |
| if (overlay-get ov 'hilit-overlay) | |
| do (delete-overlay ov))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment