Re: User.clj and set!

2011-07-24 Thread Andreas Liljeqvist
This should really be in some earthshaking announcement somewhere... https://github.com/technomancy/leiningen/commit/2ff64b77367601a216afa9e6964d1d330e3dbdb1 Load ~/.lein/user.clj inside project if present. Fixes #215 https://github.com/technomancy/leiningen/issues/215. Now I can finally do

Re: User.clj and set!

2011-06-22 Thread Paul Stadig
On Jun 19, 5:11 pm, Andreas Liljeqvist bon...@gmail.com wrote: Thanks for the answer. Would there be any problems associated with changing the root bindings? It means that every thread in the whole JVM would get that value, but that's probably what you want. It also means that if someone else

User.clj and set!

2011-06-19 Thread Andreas Liljeqvist
I am trying to set! *printlength* to something not insanity inducing. Problem is that user.clj doesn't support set! I found some old discussion about adding post-repl init, did anything come of this? There exists :repl-init in Lein, but it only takes a symbol. I would like to have one config

Re: User.clj and set!

2011-06-19 Thread David Powell
On Sun, Jun 19, 2011 at 11:58 AM, Andreas Liljeqvist bon...@gmail.comwrote: I am trying to set! *printlength* to something not insanity inducing. Problem is that user.clj doesn't support set! Vars normally only have a global root binding. When you use (binding [varname newvalue]) the var gets

Re: User.clj and set!

2011-06-19 Thread Andreas Liljeqvist
. Problem is that user.clj doesn't support set! Vars normally only have a global root binding. When you use (binding [varname newvalue]) the var gets given a thread-local binding, and you can change the value of that binding with set! The repl gives thread bindings to a number of variables that you