Re: autoloading code at repl startup

2010-05-18 Thread Lauri Pesonen
On 11 May 2010 11:59, Lauri Pesonen wrote: > > At least in my setup ~/.clojure/user.clj does not get loaded unless > ~/.clojure is in the JVM classpath. (replying to myself) So I've made this work with swank-clojure-project by adding this to my emacs config: (add-hook 'swank-clojure-project-hoo

Re: autoloading code at repl startup

2010-05-11 Thread Lauri Pesonen
On 11 May 2010 10:55, Tassilo Horn wrote: > I think ~/.clojure/user.clj is evaluated on each clojure startup, so you > could add that code there. At least in my setup ~/.clojure/user.clj does not get loaded unless ~/.clojure is in the JVM classpath. > Tassilo -- ! Lauri -- You received thi

Re: autoloading code at repl startup

2010-05-11 Thread Tassilo Horn
On Tuesday 11 May 2010 10:43:00 Lauri Pesonen wrote: > How do people autoload code in their repl at startup? > [...] > > 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. I think ~/.clojure/user.clj is evaluated on each