[Python-mode] highlight-indentation

Barry Warsaw barry at python.org
Fri Mar 11 13:47:54 CET 2011


On Mar 09, 2011, at 10:24 PM, Andreas Röhler wrote:

>just seeing highlight-indentation by Anton Johansson - thanks a lot to him
>BTW - which I suggest to include into next release.
>
>It delivers graphical bars indicating the indent-level, makes em more
>impressive. Might be useful in certain circumstances.

Hi Andreas, Anton,

Indeed, I agree that this could be very useful in some situations.  It can be
a little distracting, so it probably should not be turned on by default, but
for those cases where the indentation is really hard to follow, I think this
could be a very nice addition.

Is this file going to be added to Emacs?  It seems more general than just for
Python (e.g. turn it on in python-mode.el).

One minor nit: I wonder if it makes sense to highlight columns that are not in
the leading whitespace.  For example, turn it on and look at the define-key
lines starting at about line 845 in python-mode.el.  There are some
highlighted indentation extents after the "\C-c:" string.  Those don't seem
useful.

Thanks for pointing it out, and thanks to Anton for writing it.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-mode/attachments/20110311/7906c989/attachment.pgp>


More information about the Python-mode mailing list