Well, if it is done in terms of the current (rather simple) identation
rules, I don't see it would require too much coding. I like that
feature too, although it can also be highly annoying if you are not
expecting it :-p.
"Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
-- Content follows ;-).