Fork me on GitHub
#emacs
<
2016-01-21
>
kneiva08:01:27

Hi, I’m running Emacs & CIDER on a Mac from iTerm. After cider-jack-in I can (use ‘mynamespace.core :reload-all) and then use the functions. What is the easiest way to reload the namespace in the REPL? Like if I add a new function and then do C-c C-k the new function cannot be called from the REPL ("Unable to resolve symbol…")

kneiva09:01:31

Ah, I need to do (in-ns ‘mynamespace.core).

rickmoynihan09:01:34

@kneiva: C-c C-l is normally bound to load namespace and C-c M-n should switch your repl to the namespace your cursor is in

kneiva09:01:36

ok, thanks

bozhidar10:01:17

you can also do C-c C-k (compile current namespace) and C-u C-c C-z (go to repl and set the namespace to that of the current source buffer)