Fork me on GitHub
#cider
<
2021-05-05
>
Michael Lan16:05:14

How can I eval the surrounding form? Not the top form nor the atom at point, for example here:

(comment
  (+ 1 2)
  )

dpsutton16:05:57

you want to treat (+ 1 2) as the toplevel form rather than the whole comment form?

dpsutton16:05:46

(setq clojure-toplevel-inside-comment-form t) and then eval top level form as normal anywhere inside the (+ 1 2) or right after it. otherwise you can always put your cursor at the close of the paren after the 2 and eval last sexp

Michael Lan16:05:23

that is a nice feature, i will keep that in mind. thank you!