Re: Formatting output of pretty print using cljfmt

2016-09-16 Thread James Reeves
cljfmt doesn't currently have opinions on whether things are on one line or
spread out over several lines. From cljfmt's perspective:

[a
 b
 c]

Is as valid as

[a b c]

- James

On 16 September 2016 at 14:34, Amogh Talpallikar <
amogh.talpalli...@gmail.com> wrote:

> I have CIDER installed with cljfmt support.
>
> I have a bunch of auto-generated clojure files with formatting done via
> pretty-print with badly formatted let statements.
>
> (let
> [a
>   1
>   b
>   2
>   c
>   3
>   d
>   4]
>   (println a b c d))
>
> Is it possible for cljfmt to format it like
>
> (let [a 1
>  b 2
>  c 3
>  d 4]
>   (println a b c d))
>
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Formatting output of pretty print using cljfmt

2016-09-16 Thread Amogh Talpallikar
I have CIDER installed with cljfmt support.

I have a bunch of auto-generated clojure files with formatting done via 
pretty-print with badly formatted let statements. 

(let
[a
  1
  b
  2
  c
  3
  d
  4]
  (println a b c d))

Is it possible for cljfmt to format it like

(let [a 1
 b 2
 c 3
 d 4]
  (println a b c d))
 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.