summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paredit.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/paredit.el b/paredit.el
index e00df9d..1622cea 100644
--- a/paredit.el
+++ b/paredit.el
@@ -453,7 +453,7 @@ Paredit behaves badly if parentheses are imbalanced, so exercise
"\"Hello, |world!\"")
("hello-\n| world"
"hello-|world"))
- ("C-c C-M-l" paredit-recentre-on-sexp)
+ ("C-c C-M-l" paredit-recenter-on-sexp)
("M-q" paredit-reindent-defun)
))
nil) ; end of PROGN
@@ -1703,10 +1703,10 @@ A negative argument means move forward but still descend a level."
(interactive "p")
(down-list (- (or arg 1))))
-;;; Thanks to Marco Baringer for suggesting & writing this function.
+(defalias 'paredit-recentre-on-sexp 'paredit-recenter-on-sexp)
-(defun paredit-recentre-on-sexp (&optional n)
- "Recentre the screen on the S-expression following the point.
+(defun paredit-recenter-on-sexp (&optional n)
+ "Recenter the screen on the S-expression following the point.
With a prefix argument N, encompass all N S-expressions forward."
(interactive "P")
(save-excursion