The position of the braces might be a red herring here. I was mostly
interested in figuring out how to increase the indentation level from
1 to something larger. Even an indentation step of 2 for each level
would be easier on the eye than 1.

On Sat, Jul 16, 2011 at 4:23 PM, Sean Corfield <seancorfi...@gmail.com> wrote:
> On Sat, Jul 16, 2011 at 12:46 PM, Asim Jalis <asimja...@gmail.com> wrote:
>> Is there an easy way to increase the indent of pprint data structures
>> from 1 to something like 2 or 4? I've been searching on Google and
>> going through the docs and don't see anything.
>>
>> For example, I would like the following command to produce something
>> closer to "output 2" than to "output 1".
>
> Just curious, is your background Java or some similar C-style language?
>
> I ask because folks coming from that sort of background tend to want
> braces and parentheses on separate lines and fixed indentation whereas
> the Lisp crowd tend to want trailing braces and "natural" indentation,
> i.e., continuation lines are indented so elements line up:
>
> (somefn arg1
>        (f arg2))
>
> If I got that right the (f... should line up with arg1 above it.
>
> It took me a while to get used to the "Clojure way" of code/data
> layout but now I tend to avoid commas and just go with the flow of how
> pprint or my IDE wants to format stuff and I like the concise
> consistency.
>
> Sorry that doesn't answer your question but I hope it helps explain
> why the default pprint output looks the way it does?
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> World Singles, LLC. -- http://worldsingles.com/
> Railo Technologies, Inc. -- http://www.getrailo.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to