[英]Executing >1 line of Clojure code in the REPL from Emacs
I'm following the clojure tutorial here and it shows me how to execute one line of clojure code in the repl by invoking Cx Ce at the end of the line. 我在这里遵循clojure教程,它向我展示了如何通过在行尾调用Cx Ce来在repl中执行一行clojure代码。 Now how would I execute more than 1 line of clojure code...for example...if I was in a clojure file with lots of code but I only wanted to execute a subset in the REPL....any way to do that?
现在我将如何执行多于一行的Clojure代码...例如...如果我在一个Clojure文件中包含大量代码,但我只想在REPL中执行一个子集....任何方法那?
eg. 例如。
...
...
(defn hello-world
[]
(printf "Hello World")
)
(hello-world)
;; I'd like to execute the previous 5 lines with a key combination
...
...
``` ```
Mx
cider-eval-region
to evaluate all those statements in order. Mx
cider-eval-region
按顺序评估所有这些语句。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.