Re: need help on `pprint/write` code with better readability

2016-10-24 Thread jiyinyiyong
Cool library! But i just changed to fipp this morning. I think I will try it much later. fipp is really fast that it succeeded clojure.pprint/write. On Mon, Oct 24, 2016 at 4:36 PM Thomas Heller wrote: > Try https://github.com/weavejester/cljfmt > > It is specifically written for clj code and no

Re: need help on `pprint/write` code with better readability

2016-10-23 Thread jiyinyiyong
What does miser-width mean since you set it to 60? On Mon, Oct 24, 2016 at 3:08 AM Alex Miller wrote: > Try something like this: > > (require '[clojure.pprint :as pprint]) > (defn print-code [o] > (binding [pprint/*print-right-margin* 100 > pprint/*print-miser-width* 60] > (ppr