I'm trying to switch to Emacs as my primary source-code editor. I really miss one thing (common in even much simpler editors) - indentation guides (unobtrusive vertical lines which show the indentation level). Is Emacs able to display them?
Join Stack Overflow to learn, share knowledge, and build your career.
|
I've made a function When invoking Examples (ruby, python):
I also frequently use this snippet that folds all code on an indentation level greater than the current line. It's a great way of getting a quick overview of the outline.
|
|||||||||||||||||||||
|
|
Suppose you could bend ColumnMarker to your needs but it will highlight a column not givin you a single pixel. I indent with 8 spaces so i have never thought about it ;P |
|||
|
|
|
to my knowledge nobody has implemented indentation guides for Emacs so far. The closest thing you can get are visualization of TABs with the whitespace package, see Show tabs with a different character (Emacs). |
|||||||||
|

set listchars=tab:░\(char before the "\" is a block char that will not show up here i think, can be replaced by "|" and still looks good. after the "\" is a space character) – gcb Feb 28 '13 at 0:09vline.el: emacswiki.org/emacs/VlineMode or a modification thereof such as Highlight Current Column emacswiki.org/emacs/HighlightCurrentColumn or CrossHair Higlighting emacswiki.org/emacs/CrosshairHighlighting Users may wish to implement their own modification to change colors (foreground or background) when point is on a particular column -- e.g., that matches up with thetab-stop-list; or odds; evens; post fill-column; or point is on any wrapped line after the first visual line, or at right window edge. – lawlist May 22 '15 at 3:08