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
ruby-mode not honoring deep paren option. #5322
Comments
Have you tried to put this:
in |
@StreakyCobra I don't have a I'll try adding it to |
That did not work. |
Slightly, you guessed it 😉
Ok, I don't know then, I'm not doing ruby stuff at all. |
Have you tried to unset both in
And restarted Spacemacs? |
@StreakyCobra Okay, now we're getting somewhere! It's not quite right, but I'm going to see if I can figure it out by using user-config. |
Well, I now feel like ruby-mode is working-as-advertised and I just don't like it. What I get: method_call({
stuff: {
things: 'hi'
}
}) What I want: method_call({
stuff: {
things: 'hi'
}
}) Reading the indentation code in ruby-mode is challenging, but I'll try to see if I can make my own custom function. |
Switching to the enh-ruby-mode option for the ruby layer fixed this issue. In the past, it had issues replaying vim macros. Wish me luck... |
Did you make this work? |
@StreakyCobra Thank you so much. Spent almost an hour googling trying to fix ruby indentation. Luckily saw your post mentioning "(setq ruby-use-smie nil)" that did help! |
It seems that this answers this https://stackoverflow.com/a/20733875/710003 |
Summing it up from previous answers: (setq
ruby-align-to-stmt-keywords '(if def begin case) ; set fixed indentation for these statements
ruby-deep-indent-paren nil ; set fixed indentation for arguments inside parenthesis
ruby-use-smie nil ; set fixed indentation for chained method calls
) Version tested with: |
I'm having the same issue as described here:
http://stackoverflow.com/questions/2776317/like-vim-emacs-ruby-indentation
Setting
ruby-use-smie
tonil
withdefvar
has no effect on whether or not this configuration option works. I'm using Spacemacs v0.105 on Emacs 24.5.1 (OS X).The text was updated successfully, but these errors were encountered: