Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for an Emacs package or configuration that makes it possible to mark indentations with vertical lines, like those shown in the following screenshot of Sublime Text:

Sublime Text 2

share|improve this question

2 Answers 2

up vote 4 down vote accepted

I guess this and this could be an answer to your question.

Installation is easy. Invoke git clone git@github.com:antonj/Highlight-Indentation-for-Emacs.git . in, say, ~/.emacs.d/highlight-indents and add

(add-to-list 'load-path "~/.emacs.d/packages/highlight-indents/")
(require 'highlight-indentation)

to your .emacs. Then, when visiting a file you can M-x highlight-indentation-mode RET to enable the minor mode.

share|improve this answer
    
PERFECT. Exactly what I was looking for. Thank you! –  mfaerevaag Jun 18 '13 at 8:24
    
Hmm.. indent-guide highlights whole column and I'm seeking for a thin vertical lines like on screenshot in question. There is indent-hint by ran9er mentioned on wiki page, but it is not works out-of-box. Is there another solution? –  Geradlus_RU Jun 7 at 11:10

I think you may want to look at indent-guide mode. It gives indentation of code blocks dynamically when we move the cursor. Moreover, it is easy to set up your favorite indent characters like : and | as well as the background color of intentions.

share|improve this answer
    
I've briefly looked at indent-guide sources and README and found no way to set up indentation character, how can I do that? –  Geradlus_RU Jun 10 at 9:59

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.