I use smartparens-mode so when I type { I get {} with the cursor inbetween the two braces. I realized that more or less 100% of the time I called newline-and-indent when the cursor was between curly braces what I really wanted was to create a block and have my cursor be in the middle of that block, e.g.
let object = {▮}after:
let object = {
▮
}I was manually doing the whole newline-and-indent, split-line and indent-for-tab-command dance but then I realized I use emacs and I should probably just write some elisp to fix it so I did.