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

Feature request: A way to comment Clojure code with #_ #130

Closed
Peeja opened this issue Oct 8, 2015 · 3 comments
Closed

Feature request: A way to comment Clojure code with #_ #130

Peeja opened this issue Oct 8, 2015 · 3 comments

Comments

@Peeja
Copy link
Contributor

Peeja commented Oct 8, 2015

Commenting code with ; is quite convenient, but uncommenting it is harder, because now it's just a chunk of comment text. In Clojure, we have the comment reader macro #_ to ignore sexp but leave it as a sexp in the source. It would be really nice to have a key that would toggle #_ before a sexp.

Not sure if that's too Clojure-specific and niche-y, though. If it is, any pointers on how I might implement it as an extension to Lispy?

@abo-abo
Copy link
Owner

abo-abo commented Oct 8, 2015

You can uncomment with C-u ;. Or mark the comment block with a region and press ;. You can mark comment blocks easily: just press m when the point is before the starting ; on any line of the comment.

Example:

;; (foo)
;; (bar)
|(baz)

You can uncomment the above block with mk;, or C-p C-u ;.

@abo-abo
Copy link
Owner

abo-abo commented Oct 12, 2015

Thanks, you can now toggle Clojure comments with _.

@Peeja
Copy link
Contributor Author

Peeja commented Nov 2, 2015

Thanks, @abo-abo! This is great!

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

2 participants