Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there a way to create an additional "dummy" cursor in Emacs (preferably multiple)? Ideally I'd like to be able to set its color separately from the original cursor and set its position. Then I'd have the regular cursor that behaves normally, and I'd have multiple extra cursors whose position has to be set by some other means.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I'm not clear on just what your "dummy cursor" would do other than alter the color of the text at its position. If that's all you want, you could do that with overlays or text properties. If I'm understanding you properly, you'd probably want to use an overlay, because your "cursor" shouldn't be copied along with the text it's currently sitting on (e.g. if you kill and yank text).

share|improve this answer
    
I think he may actually want bookmarks, but I am not aware of any way to give them color on the buffer. –  jordanm Feb 22 '13 at 1:57
    
@cjm You have a good point. The blinking would just include some simple logic. –  Jeff Feb 22 '13 at 3:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.