Re: eval-after-load

2013-10-30 Thread Phillip Lord
Hmm, well, it was a nice idea, but it fails, as the eval happens before the load. Can't quite work out why this is true, but it is. Far as I can tell, this requires Java level changes. Or I can provide support in the package. Shame. Phil Phillip Lord writes: > Well, yes, but it always does i

Re: eval-after-load

2013-10-29 Thread Phillip Lord
Well, yes, but it always does it and needs modification of the source. Anyway, I found a solution; requires usage of a private var, unfortunately, but it does work. (defn eval-after-load [library form] (let [key (keyword (str "eval-after-load-" library))] (add-watch

Re: eval-after-load

2013-10-28 Thread Cedric Greevey
Doesn't simply putting some executable forms at the end of the namespace's source code do that? e.g. (ns foo ...) (defn ...) (def ...) (defn ...) ... (do-something!) On Mon, Oct 28, 2013 at 1:05 PM, Phillip Lord wrote: > > I want to add some additional configuration after I have loaded