scala-indent:align-forms
Closed this issue · 4 comments
nloyola commented
I've set scala-indent:align-forms
to t
but the indentation is wrong. This is what I get:
// (setq scala-indent:align-forms t)
val x = if (foo)
true
else
false
The line that has true
is not indented correctly.
I'm using scala mode version 20160902.525 on Emacs 25.1-rc2 running on Ubuntu 16.04.
hvesalai commented
indeed a bug
fommil commented
Scalariform isn't great with this either. If you find a scalariform setting that makes this look pretty, please let me know.
hvesalai commented
This has worked and I think it got broken at some point
hvesalai commented
the bug is that scala-indent:goto-body-anchor
goes to scala-indent:backward-sexp-to-beginning-of-line
instead of going to the beginning of if