Hi all,

How do people autoload code in their repl at startup? I'd like to
specify code that would be loaded into each repl that I start with
slime. E.g. (use 'clojure.contrib.repl-utils) and (set!
*warn-on-reflection* true). Not being able to do this easily means
that I don't use e.g. the repl-utils as much as I could, since I don't
bother loading them. Similarly to warn-on-reflection.

I know I can use user.clj on my classpath to do this, but then I need
to copy that file to each clojure project that I have. Maybe 'lein
new' could copy / generate a user.clj for me. Or alternatively 'lein
swank' / 'lein repl' could automatically load a given file into the
repl.

Another alternative would be for swank-clojure to inject some clojure
code into the repl at startup.

I'm quite happy to hack something together for lein / swank-clojure to
do this. I just wanted to get some feel for what people think is the
correct approach to do this.

On a related note, would it be beneficial to have a lein project.clj
skeleton in e.g. ~/.leiningen that 'lein new' would use to generate a
new project.clj file?

-- 
  ! Lauri

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