Command |
Keys |
Examples |
paredit-open-round |
( |
(a b |c d) | ---> | (a b (|) c d) |
(foo "bar |baz" quux) | ---> | (foo "bar (|baz" quux) |
|
paredit-close-round |
) |
; Hello,| world! | ---> | ; Hello,)| world! |
|
paredit-close-round-and-newline |
M-) |
(defun f (x| )) | ---> | (defun f (x)
|) |
|
paredit-open-square |
[ |
(a b |c d) | ---> | (a b [|] c d) |
(foo "bar |baz" quux) | ---> | (foo "bar [|baz" quux) |
|
paredit-close-square |
] |
(define-key keymap [frob| ] 'frobnicate) | ---> | (define-key keymap [frob]| 'frobnicate) |
|
paredit-doublequote |
" |
(frob grovel |full lexical) | ---> | (frob grovel "|" full lexical) | ---> | (frob grovel ""| full lexical) |
(foo "bar |baz" quux) | ---> | (foo "bar \"|baz" quux) |
(frob grovel) ; full |lexical | ---> | (frob grovel) ; full "|lexical |
|
paredit-meta-doublequote |
M-" |
(foo "bar |baz" quux) | ---> | (foo "bar baz"
|quux) |
(foo |(bar #\x "baz \\ quux") zot) | ---> | (foo "|(bar #\\x \"baz \\\\ quux\")" zot) |
|
paredit-backslash |
\ |
(string #|)
; Character to escape: x | ---> | (string #\x|) |
"foo|bar"
; Character to escape: " | ---> | "foo\"|bar" |
|
paredit-semicolon |
; |
|(frob grovel) | ---> | ;|(frob grovel) |
(frob |grovel) | ---> | (frob ;|grovel
) |
(frob |grovel (bloit
zargh)) | ---> | (frob ;|grovel
(bloit
zargh)) |
(frob grovel) | | ---> | (frob grovel) ;| |
|
paredit-comment-dwim |
M-; |
(foo |bar) ; baz | ---> | (foo bar) ; |baz |
(frob grovel)| | ---> | (frob grovel) ;| |
(zot (foo bar)
|
(baz quux)) | ---> | (zot (foo bar)
;; |
(baz quux)) |
(zot (foo bar) |(baz quux)) | ---> | (zot (foo bar)
;; |
(baz quux)) |
|(defun hello-world ...) | ---> | ;;; |
(defun hello-world ...) |
|
paredit-newline |
C-j |
(let ((n (frobbotz))) |(display (+ n 1)
port)) | ---> | (let ((n (frobbotz)))
|(display (+ n 1)
port)) |
|
Command |
Keys |
Examples |
paredit-forward-delete |
C-d, <delete>, <deletechar> |
(quu|x "zot") | ---> | (quu| "zot") |
(quux |"zot") | ---> | (quux "|zot") | ---> | (quux "|ot") |
(foo (|) bar) | ---> | (foo | bar) |
|(foo bar) | ---> | (|foo bar) |
|
paredit-backward-delete |
DEL |
("zot" q|uux) | ---> | ("zot" |uux) |
("zot"| quux) | ---> | ("zot|" quux) | ---> | ("zo|" quux) |
(foo (|) bar) | ---> | (foo | bar) |
(foo bar)| | ---> | (foo bar|) |
|
paredit-kill |
C-k |
(foo bar)| ; Useless comment! | ---> | (foo bar)| |
(|foo bar) ; Useful comment! | ---> | (|) ; Useful comment! |
|(foo bar) ; Useless line! | ---> | | |
(foo "|bar baz"
quux) | ---> | (foo "|"
quux) |
|
paredit-forward-kill-word |
M-d |
|(foo bar) ; baz | ---> | (| bar) ; baz | ---> | (|) ; baz | ---> | () ;| |
;;;| Frobnicate
(defun frobnicate ...) | ---> | ;;;|
(defun frobnicate ...) | ---> | ;;;
(| frobnicate ...) |
|
paredit-backward-kill-word |
M-DEL |
(foo bar) ; baz
(quux)| | ---> | (foo bar) ; baz
(|) | ---> | (foo bar) ; |
() | ---> | (foo |) ;
() | ---> | (|) ;
() |
|
Command |
Keys |
Examples |
paredit-wrap-round |
M-( |
(foo |bar baz) | ---> | (foo (|bar) baz) |
|
paredit-splice-sexp |
M-s |
(foo (bar| baz) quux) | ---> | (foo bar| baz quux) |
|
paredit-splice-sexp-killing-backward |
M-<up>, ESC <up> |
(foo (let ((x 5)) |(sqrt n)) bar) | ---> | (foo |(sqrt n) bar) |
|
paredit-splice-sexp-killing-forward |
M-<down>, ESC <down> |
(a (b c| d e) f) | ---> | (a b c| f) |
|
paredit-raise-sexp |
M-r |
(dynamic-wind in (lambda () |body) out) | ---> | (dynamic-wind in |body out) | ---> | |body |
|
paredit-convolute-sexp |
M-? |
(let ((x 5) (y 3)) (frob |(zwonk)) (wibblethwop)) | ---> | (frob |(let ((x 5) (y 3)) (zwonk) (wibblethwop))) |
|
Command |
Keys |
Examples |
paredit-forward-slurp-sexp |
C-), C-<right> |
(foo (bar |baz) quux zot) | ---> | (foo (bar |baz quux) zot) |
(a b ((c| d)) e f) | ---> | (a b ((c| d) e) f) |
|
paredit-forward-barf-sexp |
C-}, C-<left> |
(foo (bar |baz quux) zot) | ---> | (foo (bar |baz) quux zot) |
|
paredit-backward-slurp-sexp |
C-(, C-M-<left>, ESC C-<left> |
(foo bar (baz| quux) zot) | ---> | (foo (bar baz| quux) zot) |
(a b ((c| d)) e f) | ---> | (a (b (c| d)) e f) |
|
paredit-backward-barf-sexp |
C-{, C-M-<right>, ESC C-<right> |
(foo (bar baz |quux) zot) | ---> | (foo bar (baz |quux) zot) |
|