summaryrefslogtreecommitdiff
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
parentaa26b483d4437d317babfca722446a4d89c726d9 (diff)
Bind M-[ to paredit-wrap-square.
-rw-r--r--NEWS1
-rw-r--r--paredit.el3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e52586b..bf0cd08 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ The latest version of this file is available at
** Version 24 (beta)
+*** New key binding: M-[ (paredit-wrap-square)
*** C-M-f/C-M-b (paredit-forward/paredit-backward) now move out of strings.
*** Changed M-" (paredit-meta-doublequote) to not break line, like M-).
*** New command: paredit-meta-doublequote-and-newline has old behaviour.
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)"))