I want to change the default behavior of smartparens to remove the whitespace before the close delimiter. I mean, when I type )
after (a b c |
, I hope the final result is (a b c)|
. Here, the |
is cursor.
I searched the documentation of smartparens, and find that sp-navigate-reindent-after-up may response to this behavior. However, I don't know how to change it.
Any help will be really appreciated. Thanks in advance.
I am not a smartparens user but I found the answer from its wiki:
You can bind )
to sp-up-sexp
command:
(define-key smartparens-mode-map ")" #'sp-up-sexp)