Consider the following two snapshots: The first below is coming from Emacs on Python mode (with Jedi & Elpy)

enter image description here

This second one below comes from manually photoshopping the previous one to make it easier to distinguish between so many indentation levels.

enter image description here

Are there any packages that can help accomplish the latter effect? In the example above, I used two colors (enough to distinguish indentation levels from their neighbors), but other color schemes using more colors could make navigation even easier.

Note that in Emacs, the indentation character is dictated by:

# Insert multiple spaces for indentation:
(setq indent-tabs-mode nil)

# Insert TAB for indentation:
(setq indent-tabs-mode nil)

1 Answer 1


Here are a few minor modes that look like they could be tweaked to meet the needs of the original poster:


enter image description here


enter image description here


[No screenshot due to no *.gif support when adding links.]

There are also a few minor modes out there that create a vertical line that tracks the cursor position, which the original poster may find helpful.

  • Awesome, thanks for moving this into an answer. Nov 11, 2014 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.