How to display indentation guides in Emacs? -


I'm trying to switch to Amex as my primary source-code editor. I really miss one thing (common among very simple editors) - Indentation guides (escaped vertical lines that show indentation levels) Is Emacs capable of displaying them?

I have given a function highlight-indentation for this purpose, / P>

When starting highlights indentation without a prefix argument, the current indentation level is randomly estimated from major mode (Python, Ruby and Language based on CI-mode) . Only works for space indentation To change the appearance of indentation lines, customize Highlight indent-face .

Example (Ruby, Python): Ruby, Python Example

I also use this snippet which multiplies all the code at an indentation level more than the current line, it is a great way to make quick observations of the framework.

  (currently- "toggle-fold") "toggle all lines larger than indent on existing line" (interactive) (go ((set 1)) (save-trip (back) Set-selective display (if selective display zero (or call1)))) (global-set-key [(MCI)] 'AJ' (set-call-caller (+ 1 (current-column) -Toggle-folded)  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -