This isn't necessarily a scala-mode idea, perhaps it belongs in our Hacks page.
I often find myself with some code like
val foo = bar.doTheThing(baz)
and I want to rewrite it as
val foo = magicalWowzers {
bar.doTheThing(baz)
}
but doing so is really clunky. It would be great to have a key binding such that one only needs to move the point to the beginning of bar (i.e. to end of line, or select a region) and do this automatically.
This isn't necessarily a
scala-mode
idea, perhaps it belongs in our Hacks page.I often find myself with some code like
and I want to rewrite it as
but doing so is really clunky. It would be great to have a key binding such that one only needs to move the point to the
beginning of bar
(i.e. to end of line, or select a region) and do this automatically.