Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created October 22, 2012 07:52
Show Gist options
  • Save hidsh/3930197 to your computer and use it in GitHub Desktop.
Save hidsh/3930197 to your computer and use it in GitHub Desktop.
elisp: fringe test
(defvar ol-mark-fringe nil)
(defun fr ()
(interactive)
(let ((s (make-string 1 ?x)))
(when ol-mark-fringe (delete-overlay ol-mark-fringe))
(setq ol-mark-fringe (make-overlay (point) (1+ (point))))
(put-text-property 0 1 'display '(left-fringe right-triangle) s)
(overlay-put ol-mark-fringe 'before-string s)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment