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

Add support for Clojure's reader macros #35

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions symex-interface-clojure.el
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ Accounts for different point location in evil vs Emacs mode."
"Evaluate buffer."
(cider-eval-buffer))

(defun symex-clojure-comment-remaining-reader-macro ()
"Comment out remaining symexes at this level using clojure's comment reader macro."
(interactive)
(let ((count (symex--remaining-length)))
(symex-clojure-comment-reader-macro count)))

(defun symex-clojure-comment-reader-macro (count)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see these functions being used anywhere - is the plan for them to be used from symex-comment and symex-comment-remaining?

"Comment symex using clojure's comment reader macro"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was a little confused by this docstring - maybe it should say "... using clojure's syntax for commenting reader macros"

(interactive "p")
(dotimes (_ count)
(insert "#_")
(when (not (symex--go-forward))
(backward-char 2))))


(provide 'symex-interface-clojure)
;;; symex-interface-clojure.el ends here