Re: GMail code formatter

2016-06-16 Thread Colin Taylor
If you install the Borealis theme ( https://github.com/Misophistful/borealis-cursive-theme) it looks even better IMO ; ;;; Public (s/defn glob? :- Boolean "True if target is a Glob" [target :- s/Any] (= (type target) Glob)) On 17 June 2016 at 08:34, Alan Thompson wrote: > ​​

Re: GMail code formatter

2016-06-16 Thread Alan Thompson
​​Hmmm, Never thought of that: (defn truthy? "Returns true if arg is logical true (neither nil nor false); otherwise returns false." [arg] (if arg true false) ) ​Doesn't look half-bad, although ​I don't always have Cursive/IDEA open. Alan On Tue, Jun 14, 2016 at 9:38 PM, Colin Taylor wro

GMail code formatter

2016-06-14 Thread Colin Taylor
Even easier, just copy and paste from Cursive :) -- 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

GMail code formatter

2016-06-14 Thread Alan Thompson
Just discovered a cool Chrome extension so that you can get proper syntax highlighting when pasting code into your email. It turns plain-old code into something nice to read: *Plain:* (defn truthy? "Returns true if arg is logical true (neither nil nor false); otherwise returns false." [arg]

[ANN] Lisp source code formatter for Emacs in any major mode (including fundamental-mode)

2015-04-08 Thread Tu Do
A few days ago I announced a new released of Srefactor with only a rudimentary support for Lisp code formatting. Now it is quite complete and can format a 10k Lisp source file fine in around 10 seconds, with significant time spending on indentation rather than code rearrangement. Homepage: htt

Re: Code formatter

2009-11-07 Thread mudphone
Um, I use butterflies? On Nov 6, 5:35 pm, John Harrop wrote: > On Fri, Nov 6, 2009 at 7:41 PM, Tim Dysinger wrote: > > Use emacs! It formats your code while you type :) > > Nasty side effect though -- it formats your brain while you type, too. > Eventually you wind up a gibbering lunatic. :) I'

Re: Code formatter

2009-11-05 Thread John Harrop
On Thu, Nov 5, 2009 at 4:57 PM, jan wrote: > John Harrop writes: > > > The following, which I relinquish into the public domain and certify is > > original to me, takes a string and reformats it as Clojure code, > returning a > > string. It behaves similarly to the Enclojure reformatter, but: >

Re: Code formatter

2009-11-05 Thread jan
John Harrop writes: > The following, which I relinquish into the public domain and certify is > original to me, takes a string and reformats it as Clojure code, returning a > string. It behaves similarly to the Enclojure reformatter, but: > 1. Outside string literals and comments, it will take c

Code formatter

2009-11-05 Thread John Harrop
The following, which I relinquish into the public domain and certify is original to me, takes a string and reformats it as Clojure code, returning a string. It behaves similarly to the Enclojure reformatter, but: 1. Outside string literals and comments, it will take care of all spacing. 2. Comme

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread Meikel Brandmeyer
Hi, Am 24.03.2009 um 20:08 schrieb Howard Lewis Ship: Using regular and proper formatting assists in submitting patches. hahaha! If someone submitting a patch ever adhered to a coding convention of any sort. A little Javadoc would be nice as well. Yes. That would definitively be a good a

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread Howard Lewis Ship
+1 Using regular and proper formatting assists in submitting patches. A little Javadoc would be nice as well. On Tue, Mar 24, 2009 at 4:46 AM, Mark Volkmann wrote: > > +1 for running all the code under src/jvm through some code formatter > that uses something at least similar to the

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread wlr
On Mar 24, 7:46 am, Mark Volkmann wrote: > +1 for running all the code under src/jvm through some code formatter > that uses something at least similar to the Sun Java conventions. > > On Mon, Mar 23, 2009 at 11:59 PM, BerlinBrown wrote: > > > I was curious about how som

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread dysinger
You mean by Sun Norvig conventions right ? ;) http://code.google.com/p/clojure/issues/detail?id=16&q=pretty&colspec=ID%20Type%20Status%20Priority%20Reporter%20Owner%20Summary On Mar 24, 1:46 am, Mark Volkmann wrote: > +1 for running all the code under src/jvm through some code forma

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread Joshua
one with this > "convention" thing? ;) > > David > > On Tue, Mar 24, 2009 at 8:05 AM, Laurent PETIT wrote: > > > > > Why you guys want to suppress all the fun from clojure ? ;-) :-p > > > 2009/3/24 Mark Volkmann > > >> +1 for runn

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread David Nolen
4 Mark Volkmann > > >> +1 for running all the code under src/jvm through some code formatter >> that uses something at least similar to the Sun Java conventions. >> >> On Mon, Mar 23, 2009 at 11:59 PM, BerlinBrown >> wrote: >> > >> > I was curi

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread Laurent PETIT
Why you guys want to suppress all the fun from clojure ? ;-) :-p 2009/3/24 Mark Volkmann > > +1 for running all the code under src/jvm through some code formatter > that uses something at least similar to the Sun Java conventions. > > On Mon, Mar 23, 2009 at 11:59 PM, Berli

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread Mark Volkmann
+1 for running all the code under src/jvm through some code formatter that uses something at least similar to the Sun Java conventions. On Mon, Mar 23, 2009 at 11:59 PM, BerlinBrown wrote: > > I was curious about how some of the clojure code worked and observed > that the coding s

Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-23 Thread BerlinBrown
I was curious about how some of the clojure code worked and observed that the coding style is a little bit non idiomatic from typical Java coding conventions. E.g. there aren't any javadoc comments on methods or classes, non standard indents. Something like checkstyle might prove useful. http:/

Re: Clojure code formatter

2009-01-28 Thread Laurent PETIT
rect (missing parentheses, ...), thus being more permissive, while still doing its best to format what it is presented with ? 2009/1/29 Michael Wood > > On Wed, Jan 28, 2009 at 6:52 PM, Laurent PETIT > wrote: > > Hello, > > > > Do you know if there is a clojure cod

Re: Clojure code formatter

2009-01-28 Thread Michael Wood
On Wed, Jan 28, 2009 at 6:52 PM, Laurent PETIT wrote: > Hello, > > Do you know if there is a clojure code formatter, written either in clojure > or java ? Have a look here: http://groups.google.com/group/clojure/search?group=clojure&q=pretty+print&qt_g=Search+this+grou

Clojure code formatter

2009-01-28 Thread Laurent PETIT
Hello, Do you know if there is a clojure code formatter, written either in clojure or java ? It could take a string or InputStream/Reader or File as its input, and return a well formatted String/outputStream/Writer ? Indeed, I don't want to reinvent the wheel for clojure-dev, but if