When using the newly added ruby formatting functionality I face the following problem:
I would really like for my rspec code to be formatted like the following:
it do
is_expected.to match(/\[Error\]/)
.and match(/#{result}/)
.and match(/-+$/)
end
This is what I get when having ruby-use-smie
set to nil.
When I have the variable ruby-use-smie
set to non-nil
however, the code gets formatted like the following:
it do
is_expected.to match(/\[Error\]/)
.and match(/#{result}/)
.and match(/-+$/)
end
I have fiddled with the following variables:
ruby-align-chained-calls
ruby-align-to-stmt-keywords
ruby-deep-indent-paren
ruby-deep-indent-paren-style
And yet have not found a way to have the desired formatting when using ruby-smie
. I'm really in love with the s-expression navigation functionality provided by smie.
Am I missing some configuration ? Is it impossible for me to achieve the first form while using ruby smie?
match
expression in parens. And please report the bugs to the Emacs tracker.