Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to treat macro as clojure.core/comment for the purposes of top-level form #2600

Open
markaddleman opened this issue Oct 23, 2021 · 0 comments

Comments

@markaddleman
Copy link

(from https://clojurians.slack.com/archives/C0744GXCJ/p1634844399005800)

recently started using https://github.com/hyperfiddle/rcf . It's pretty nice. I'd love to configure Cursive to treat its tests macro the same as clojure core's comment macro for the purposes of sending the top form to the REPL. Under Cursive's current behavior, only (inc 1) form is considered the top form:
(comment (inc 1) ; <- cursor in this form (inc 2))

Whereas, the entire (tests ...) form is considered the top form:
(tests (inc 1) (inc 2))

As a default behavior, this makes sense. However, I don't think there's currently a way to tell Cursive to treat tests the same as comment

Comment from cfleming:

I’ll check this - I’m not sure if it’s possible to resolve-as a form as comment. I’m also not sure you’d want that, since it disables some functionality inside comment blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant