简体   繁体   English

你如何 go 回到 Emacs 中 CIDER 的 nREPL 中的最后一个评估表达式?

[英]How do you go back to the last evaluated expression in CIDER's nREPL in Emacs?

One thing I really love about using the Lein nREPL is that I can just go to the last evaluated Clojure expression by pressing the up-arrow key.我真正喜欢使用 Lein nREPL 的一件事是,我可以通过按向上箭头键 go 到最后评估的 Clojure 表达式。 Is there anyway to do something similar in the CIDER nREPL?无论如何在 CIDER nREPL 中做类似的事情吗?

You're looking for the function cider-repl-previous-input which by default is bound to Mp or for cider-repl-backward-input which is bound to Cp .您正在寻找 function cider-repl-previous-input默认绑定到Mpcider-repl-backward-input绑定到Cp Look at their documentation to find out how they differ with regards to a search pattern.查看他们的文档以了解它们在搜索模式方面的不同之处。

And of course the corresponding cider-repl-next-input ( Mn ) and cider-repl-forward-input ( Cn ) are available to you, too.当然,您也可以使用相应的cider-repl-next-input ( Mn ) 和cider-repl-forward-input ( Cn )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM