Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 like block highlighting in emacs

Is there an emacs plugin which creates these nice vertical lines for the code blocks like in Sublime Text 2? (See attached screenshots for what I mean).

enter image description here

like image 824
Kungi Avatar asked Jan 12 '12 14:01

Kungi


2 Answers

Please see highlight-indentation:

https://github.com/antonj/Highlight-Indentation-for-Emacs/

Unfortunately the current version is very simple and it draws character-wide columns instead of thin lines so it doesn't look very appealing. But at least it's a start.

I do not use it by default - if I'm lost then I do M-x highlight-indentation.

like image 174
user673592 Avatar answered Nov 15 '22 09:11

user673592


It's not quite the same thing, but you get a similar benefit from the features mentioned here:

http://www.emacswiki.org/emacs/HighlightCurrentColumn

http://www.emacswiki.org/emacs/VlineMode

Vline can use a thin line (or a face). Column-marker highlighting stays put (doesn't move with the cursor), and you can highlight any number of columns, but it uses a face, not a thin line.

like image 25
Drew Avatar answered Nov 15 '22 09:11

Drew