Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs: persistent highlighting of a region

The Emacs extension markerpen.el (link text) allows you to hightlight arbitrary regions in your buffer. With this extension, the added highlighting is lost once you kill the buffer though. However, it would be nice to be able to highlight arbitrary regions of a file in a "persistent" way -- in the sense that the added hightlighting is not lost after I close the file.

Do you know of any way I could have such a "persistent" highlighting?

Thanks very much.

like image 896
falsum Avatar asked Oct 11 '10 02:10

falsum


2 Answers

Try enriched-mode.

like image 103
huaiyuan Avatar answered Sep 30 '22 14:09

huaiyuan


Yes, such a feature does exist. And you can add the highlighting in any number of ways, including sweeping the mouse marker pen-style.

http://www.emacswiki.org/emacs/HighLight#PermanentHighlighting

like image 35
Drew Avatar answered Sep 30 '22 14:09

Drew