سؤال

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

هل كانت مفيدة؟

المحلول

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.

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top