If typed in sh-mode
the closing brace is not auto-indented:
function()
{
}
If typed in c-mode
the closing brace is auto-indented when inserted:
function()
{
}
The exact keystrokes are: f u n c t i o n ( ) ENT { ENT }
.
How can I change this behavior to match c-mode
?