I want to expand else {|}
(second parentheses generated by smartparens) into
else {
|
}
which is the best sequence of keys or options?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this community
(sp-local-pair 'css-mode "{" nil :post-handlers '(:add ("||\n[i]" "RET")))
. Then if you press RET when at { | } this will do what you want I think.