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) |
(foo "bar |baz" quux) | ---> | (foo "bar \"|baz" quux) |
|
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 #|)
; Escaping character... (x) | ---> | (string #\x|) |
"foo|bar"
; Escaping character... (") | ---> | "foo\"|bar" |
|
paredit-comment-dwim |
M-; |
(foo |bar) ; baz | ---> | (foo bar) ; |baz |
(frob grovel)| | ---> | (frob grovel) ;| |
(foo bar)
|
(baz quux) | ---> | (foo bar)
;; |
(baz quux) |
(foo bar) |(baz quux) | ---> | (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-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) |
|