-
-
Notifications
You must be signed in to change notification settings - Fork 247
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 for vertically aligning values in a let
(align-cljlet)
#126
Comments
I strongly disagree that this should be the canonical recommended style, but I don't have a problem adding this functionality to clojure-mode if it can be done cleanly. |
Just curious: why wouldn't you recommend this style? One possible problem I could imagine is, for those who use tabs rather than spaces, it could cause a mess. |
People are going to be editing Clojure files in editors that don't have this feature implemented, and telling them they can't write idiomatic code without manually counting out their spaces until things line up just isn't fair. It's not that I recommend against doing it; just that I recommend against a blanket statement that everyone should do it. |
I'm with @technomancy on this. |
While I agree that this should not be considered the true idiomatic style, I use that style sometimes and would love to get some support. My favorite would be an integration with Does closing this issue mean, we'll not tackle this? |
I'd consider for inclusion a simple solution to the problem, but nothing nearly as complex as the code in |
For posterity, this exists now: https://github.com/clojure-emacs/clojure-mode#vertical-alignment |
Would be nice if Emacs could help me turn this:
into
This came up at bbatsov/clojure-style-guide#10 , and samaaron mentioned there's already a mode that does this: https://github.com/gstamp/align-cljlet .
Is align-cljlet something that could be integrated into clojure-mode?
The text was updated successfully, but these errors were encountered: