Upon pressing enter inside a newly created block I would like the Emacs to move the ending curly brace an extra newline down, and then indent the cursor. Is this possible?
Example
Before pressing Enter
for i := range x {<cursor>}
After pressing Enter once I get this
for i := range x {
<cursor>}
However what I would like to get is this
for i := range x {
<cursor>
}