cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Michael Lan 2021-05-05T16:30:14.454Z

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

(comment
  (+ 1 2)
  )

dpsutton 2021-05-05T16:31:57.454400Z

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

dpsutton 2021-05-05T16:32:46.455200Z

(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 Lan 2021-05-05T16:34:23.455800Z

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