The way that I'm reloading the nrepl in Clojure seems too bulky.
When I load a Clojure project and nrepl, I:
- Create a keyboard macro to input and return something like
(use 'my-namespace.core :reload). - Next I bind the keyboard macro to something else, usually
C-tab. - Finally, every time I switch into the nrepl, I execute
C-tab, and the repl reloads.
This seems like a lot of unnecessary work. I've looked around at getting the namespace programmatically, or with C-c C-e, but nothing seems to fit quite right.
Isn't there an easier way?
Thanks.
,and thencleardoesn't it do what you want? Alternatively, maybe,and thenns?(def life-means? 42)in their file they would be able to save that file, writelife-means?in the repl, and get back42.