On Jun 5, 2009, at 3:52 PM, Phil Hagelberg wrote:
You may be able to customize the indentation to behave differently, butthat's going to be even worse than using define-clojure-indent withregard to consistency when other people contribute to your project. Anytime you stray from the standard indentation rules you have to choosebetween getting inconsistency in the codebase or enforcing your own newstyle somehow.
While I often like lining up all the arguments generally, it is the one thing that I "fix" manually from time to time when the loss of horizontal real estate becomes too great to tolerate.
One possible improvement would be to change clojure-mode so that "with- *" (as a regex) would use with-like rules. A uniform rule for "do-*" would also probably work.
Are the keys in clojure-indent tables literal strings now? Is there an easy way to make a regex work?
Another common thing I've bumped into is that Clojure functions are often structured to operate on an object with operands. Currently that's laid out this way:
(operation object arg1 (really-long-expression that takes a bunch of args) arg3) Often what I'd prefer is: (operation object arg1 (really-long-expression that takes a bunch of args) arg3) Now that I look at it, that's just like the with-* case.What are the downsides to always indenting list contents that start on a new line as indented 2 (possibly optionally 1) from their opening paren?
--Steve
smime.p7s
Description: S/MIME cryptographic signature