如何清除和重新加载我的nrepl会话在emacs? [英] How can I clear and reload my nrepl session in emacs?

查看:105
本文介绍了如何清除和重新加载我的nrepl会话在emacs?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用emacs和nrepl。如何执行以下操作:

I am working with emacs and nrepl. How can I do the following:


  1. 退出 nrepl 只要杀死缓冲区)

重新载入我在 nrepl / li>

Reload everything I was working with in nrepl.

我试图解决的问题是,当我加载一个 ns 表单,它有一个错误,我无法加载正确的代码,因为它不断给我以前的错误。

The problem I'm trying to solve by doing this is that when I have loaded an ns form and it has an error, I am unable to load the correct code because it keeps giving me the previous error.

推荐答案


1)退出nrepl(目前我只是删除缓冲区)

1) Exit the nrepl (currently I just kill the buffer)

Mx nrepl-quit


2)重新加载nrepl中的所有内容。 (我有这个问题,当我haave
加载ns,它有一个错误,然后我无法加载
正确的代码,它仍然给我以前的错误)

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)

您可以切换到缓冲区并使用 Cc Ck 加载缓冲区, code> Cc Cc 来评估表达式。另一个选项是:

You can switch to the buffer and use C-c C-k to load the buffer, or just use C-c C-c to eval an expression. Another option would be:

(use :reload 'my.namespace)

这篇关于如何清除和重新加载我的nrepl会话在emacs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆