我正在使用 emacs 和 nrepl。我怎样才能做到以下几点:
nrepl
(目前我只是杀死缓冲区)nrepl
中重新加载我正在使用的所有内容. 我试图通过这样做解决的问题是,当我加载了
ns
表单并且它有一个错误,我无法加载正确的代码,因为它一直给我以前的错误。
最佳答案
1) Exit the nrepl (currently I just kill the buffer)
M-x nrepl-quit
2) Reload everything in the nrepl. (I have this problem when I haave loaded the ns, and it has an error. Then I am unable to load the correct code, it still keeps giving me the previous error)
您可以切换到缓冲区并使用
C-c C-k
加载缓冲区,或仅使用 C-c C-c
评估一个表达式。另一种选择是:(use :reload 'my.namespace)
在 REPL 中。
关于emacs - 如何在 emacs 中清除并重新加载我的 nrepl session ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15701632/