2009/9/11 Brenton <bashw...@gmail.com>:
>
> I use clojure-mode.
>
> I have a ruby script named clj that I use to start Clojure from the
> command line and from emacs.
>
> When I set up a new Clojure project I create the following files:
>
> .cljrc.clj
> bin/
> src/
> test/
> lib/
>
> The clj script does the following:
>
> 1) Put the standard Clojure jars in the classpath
> 2) Find the root of the project that you are working on by searching
> up the directory structure for a .cljrc.clj file. .cljrc.clj contains
> common functions like (exit) that will get loaded into the 'user
> namespace. Creating this file in a directory establishes it as the
> root of a Clojure project.
> 3) Add any jars within the lib directory to the classpath.
> 4) If clj has no parameters then start the REPL in the root of the
> project directory, otherwise run a script and pass it any additional
> parameters.
>
> It is not perfect but I like it. I like that the same script is used
> to run Clojure from the command line and from emacs. I don't want to
> have to configure each in a different way.

Sounds nice...  Any chance of putting this script up somewhere?

Having something that works consistently across Emacs/Slime and the
command line without needless duplication is something I've been
looking for.

Thanks again,

R.

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