Can I clean the repl?

后端 未结 8 1873
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 13:50

I have played with a lot of code in a repl console, how can I clear it? I would like a fresh one without restarting it. Can that be done?

8条回答
  •  -上瘾入骨i
    2020-12-23 14:10

    If you are using Emacs + nREPL, you can either:

    • Run Mx nrepl-clear-buffer or
    • Run Cc Mo

    If the key binding is not enabled, run Mxnrepl-interaction-mode to enable it. You can find other useful shortcuts in nrepl.el and/or customize the key bindings to fit your needs.

    Note: you can find all nREPL's key bindings in your system by running M-x v nrepl-mode-map and following the nrepl.el link.

提交回复
热议问题