summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paredit.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/paredit.el b/paredit.el
index d86bf25..5c27bab 100644
--- a/paredit.el
+++ b/paredit.el
@@ -629,7 +629,8 @@ If in a character literal, do nothing. This prevents changing what was
(paredit-in-comment-p))
(insert ,open))
((not (paredit-in-char-p))
- (paredit-insert-pair n ,open ,close 'goto-char))))
+ (paredit-insert-pair n ,open ,close 'goto-char)
+ (save-excursion (backward-up-list) (indent-sexp)))))
(defun ,(paredit-conc-name "paredit-close-" name) ()
,(concat "Move past one closing delimiter and reindent.
\(Agnostic to the specific closing delimiter.)