-
-
Notifications
You must be signed in to change notification settings - Fork 247
Support alignment for reader conditionals #486
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
Support alignment for reader conditionals #486
Conversation
I tried this code at work for a week, has given me no issue. Let me know if there's any point of improvement! |
e9ce48f
to
293d739
Compare
clojure-mode.el
Outdated
(not (eq (char-before (1- point)) ?\#))) | ||
;; Are we in a reader conditional? | ||
(and clojure-align-reader-conditionals | ||
(or (and (eq (char-before (- point 2)) ?\#) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use some string or regular expressions instead? Seems odd to be looking for a sequence of characters like this.
clojure-mode.el
Outdated
clojure-align-cond-forms) | ||
'symbols)) | ||
(concat (when clojure-align-reader-conditionals | ||
"#\\?@(\\|#\\?(\\|") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably put those in some var.
Apart from my small remarks the changes look good. Also - don't forget to file a PR for the other alignment change we discussed recently. |
293d739
to
28bf6fc
Compare
28bf6fc
to
8ed99ba
Compare
136f172
to
4eeb5b3
Compare
Alright, thanks for the review! Ready again. |
Thanks! |
🙌 I'll work on the other stuff that you mentioned earlier today, during the week. |
Great!
On Mon, 27 Aug 2018 at 20:28, vemv ***@***.***> wrote:
🙌 I'll work on the other stuff that you mentioned earlier today, during
the week.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#486 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGVytwnWwccj-SgbC2zYLYIymsAbv6wks5uVDo-gaJpZM4WLKYz>
.
--
Best Regards,
Bozhidar Batsov
http://www.batsov.com
|
Fixes #483.