emacs - 如何在 emacs 中清除并重新加载我的 nrepl session ?

标签 emacs clojure nrepl

我正在使用 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/

    相关文章:

    emacs - Clojure 代码热重载功能

    emacs - 为 emacs 组织模式设置时钟表持续时间格式

    haskell - Emacs 主提示符中的函数名称自动补全 - haskell 模式

    clojure - clojure 中比使用实例更惯用的模式?按类型分派(dispatch)

    Clojure 可变参数习语

    emacs - 什么是 ltmain.sh,为什么 automake 说它丢失了?什么是好的自动(make/conf/etc)生成器?

    authentication - 如何在clj-http中设置cookie?

    clojure - 在 Clojure 服务器中嵌入 NREPL 的最佳实践方法

    eclipse - 逆时针 HTTP REPL

    clojure - 在 CIDER 中设置 Figwheel REPL 时遇到问题