-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Paren-less multi-line method call indentation is wrong #82
Comments
Any update on this issue? It's rather annoying 😄 |
@fibrasek patches welcome. |
@zenspider can you point me where to start? I'll be glad to fix this it'll be a good way to practice my elisp :) |
I just ran into this as well. It seems parenthesis around parameters do not make a difference. Current erm indents multi-line parameter lists like this: foo(1,
2,
3,
4) Or without parens: foo 1,
2,
3,
4 I would like to indent such calls like this: foo(1,
2,
3,
4) Is there a setting I am missing? Otherweise I would appreciate a pointer on where to look. :-) |
@nmk Take a look at Here's what I have, with all the defaults: foo(1,
2,
3,
4)
foo 1,
2,
3,
4
# Local Variables:
# enh-ruby-bounce-deep-indent: nil
# enh-ruby-deep-indent-construct: t
# enh-ruby-deep-indent-paren: t
# enh-ruby-hanging-brace-deep-indent-level: 0
# enh-ruby-hanging-brace-indent-level: 2
# enh-ruby-hanging-indent-level: 2
# enh-ruby-hanging-paren-deep-indent-level: 0
# enh-ruby-hanging-paren-indent-level: 2
# enh-ruby-indent-level: 2
# enh-ruby-indent-tabs-mode: nil
# enh-ruby-preserve-indent-in-heredocs: nil
# End: Indenting that whole file indents as you want with the parens. You might have some settings that go against that, so try first with these settings, and then |
@fibrasek clone the repo, try |
@nmk I should add: |
@zenspider I'll look into it, thanks! |
AFAICT, this is working fine for me. It seems obvious that nobody wants to patch this to work the way OP described. So should this ticket be closed? |
Currenlty:
Should be:
The text was updated successfully, but these errors were encountered: