Any ideas how to do this cleanly, ideally so I can just call (format
...) without having to call (indent-line-if-necessary) before each new
line?
> Any ideas how to do this cleanly, ideally so I can just call (format
> ...) without having to call (indent-line-if-necessary) before each new
> line?
write out the file, edit it w/ emacs, using `c-indent-exp'. this is the
approach we use for gratuitous beautification of C-style generated code:
http://www.scripps.edu/~ttnttn/build/mead/swig/swigpp.el
thi
You can use logical blocks in the pretty printer for this. That
won't be much different from how the pretty printer does it for
Lisp, either, so you can probably learn from some relevant code.
#:Erik
--
If this is not what you expected, please alter your expectations.
also you could use the `indent' utility.
LaP
--
"... By the grace of God Almighty
And the pressures of the market place
The human race has civilized itself
It's a miracle ..." ("It's A Miracle", Roger Waters, 1988-1991 Pink Floyd
Music Publishers)