summaryrefslogtreecommitdiff
path: root/paredit.el
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2013-07-06 20:51:44 +0000
committerTaylor R Campbell <campbell@mumble.net>2013-07-06 20:51:44 +0000
commita26c148244962c1365c185dbe154118c88183575 (patch)
treee26f54640de8baecc4c768613bb80f468e1c1e61 /paredit.el
parentaa26b483d4437d317babfca722446a4d89c726d9 (diff)
Bind M-[ to paredit-wrap-square.
Diffstat (limited to 'paredit.el')
-rw-r--r--paredit.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/paredit.el b/paredit.el
index a79db21..30834d5 100644
--- a/paredit.el
+++ b/paredit.el
@@ -392,6 +392,9 @@ Paredit behaves badly if parentheses are unbalanced, so exercise
("M-(" paredit-wrap-round
("(foo |bar baz)"
"(foo (|bar) baz)"))
+ ("M-[" paredit-wrap-square
+ ("(foo |bar baz)"
+ "(foo [|bar] baz)"))
("M-s" paredit-splice-sexp
("(foo (bar| baz) quux)"
"(foo bar| baz quux)"))