Reputation: 2783
I'm following the clojure tutorial here and it shows me how to execute one line of clojure code in the repl by invoking C-x C-e at the end of the line. 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?
eg.
...
...
(defn hello-world
[]
(printf "Hello World")
)
(hello-world)
;; I'd like to execute the previous 5 lines with a key combination
...
...
```
Upvotes: 1
Views: 195
Reputation: 1369
M-x
cider-eval-region
to evaluate all those statements in order.Upvotes: 1