Well indentation is a function of the editor you are using. Emacs has
it builtin, if you are looking at something at like eclipse or
textedit, or whatever, just speaking practically here but as a
function of what most clojure developers use, you're just not going to
see those editors supported as well. This is just being realistic, as
a someone who uses those editors, it would be good if those people
could help develop clojure support.

Its easy to add contrib, just download, extract, and add to classpath.

If you want me to spell it out,

$ cd easy-to-setup
$ wget http://clojure-contrib.googlecode.com/files/clojure-contrib-1.1.0.zip
$ unzip clojure-contrib-1.1.0.zip
$ java -cp "clojure-1.1.0/clojure.jar:clojure-contrib-1.1.0/clojure-
contrib.jar:./" clojure.main

You can put whatever clojure source files you want in the directory
easy-to-setup and depend on each other, sans circular dependencies.
(Be sure to note the ":./" at the end of the -cp argument). You can do
this during runtime cause source files are read and re-read everytime
you (require .. :reload) it.

-Brent

On Jun 28, 11:38 pm, Lee Spector <lspec...@hampshire.edu> wrote:
> Yes, it is indeed easy to do what you say, and it's close to what I think is 
> needed but not quite there, mainly because it won't give you an editing 
> environment with Clojure indentation or paren-matching. As I mentioned I 
> think those editor features are really necessary, and unfortunately the next 
> step, to get Clojure-aware editing, is messier. Also, BTW, I think that 
> contrib is necessary, which your method won't provide. And (this I actually 
> just don't know) if you want to split your code into multiple files that 
> require each other, will they be found if they're in the same directory?
>
>  -Lee
>
> On Jun 28, 2010, at 11:23 PM, Brent Millare wrote:
>
>
>
>
>
>
>
> > On Jun 28, 6:34 pm, Lee Spector <lspec...@hampshire.edu> wrote:
> >> Speaking for me only: Let a million IDEs bloom.
>
> >> I'm just expressing my interest in there being at least one that allows 
> >> new users to download/install/edit/run code with minimal work and minimal 
> >> prior knowledge.
>
> > Technically if its just this as your requirement, this is easy.
>
> > 1. Download and install
> > $ mkdir easy-to-setup
> > $ cd easy-to-setup
> > $ wgethttp://clojure.googlecode.com/files/clojure-1.1.0.zip
> > $ unzip clojure-1.1.0.zip
>
> > 2. Edit code in any text editor.
> > $ nano foo.clj
> > or
> > $ emacs foo.clj
> > or
> > $ gedit foo.clj
>
> > 3. Run (get a repl going)
> > $ java -cp "clojure-1.1.0/clojure.jar:./" clojure.main
>
> > Boom done. In 3 easy steps. This of course assumes a *nix environment
> > but thats easy to do these days with ubuntu, OS X, and vmware/
> > virtualbox. I'd assume a windows java developer could easily write a
> > tutorial for windows users.
>
> > I believe that asking for other requirements, like getting it to work
> > with your favorite IDE, is what makes it hard for newbies if there is
> > little support, however, that is to be expected.
>
> > I'm trying a new approach to make meeting more difficult requirements
> > easier with my clojure distribution,http://github.com/bmillare/djbut
> > there is still a lot of work needed, including getting it to self
> > install on different platforms.
>
> > Best,
> > Brent
>
> --
> Lee Spector, Professor of Computer Science
> School of Cognitive Science, Hampshire College
> 893 West Street, Amherst, MA 01002-3359
> lspec...@hampshire.edu,http://hampshire.edu/lspector/
> Phone: 413-559-5352, Fax: 413-559-5438
>
> Check out Genetic Programming and Evolvable 
> Machines:http://www.springer.com/10710-http://gpemjournal.blogspot.com/

-- 
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