Command |
Keys |
Examples |
paredit-open-list |
( |
(a b |c d) | ---> | (a b (|) c d) |
|
(foo "bar |baz" quux) | ---> | (foo "bar (|baz" quux) |
|
|
paredit-close-list-and-newline |
) |
(defun f (x| )) | ---> | (defun f (x)
|) |
|
|
paredit-close-list |
M-) |
; Hello,| world! | ---> | ; Hello,)| world! |
|
|
paredit-doublequote |
" |
(frob grovel |full lexical) | ---> | (frob grovel "|" full lexical) |
|
(foo "bar |baz" quux) | ---> | (foo "bar \"baz" quux) |
|
|
paredit-close-string-and-newline |
M-" |
(foo "bar |baz" quux) | ---> | (foo "bar baz"
|quux) |
|
(foo bar| baz quux) | ---> | (foo bar "|" baz quux) |
|
|
paredit-backslash |
\ |
(string #|)
; Escaping character... (x) | ---> | (string #\x|) |
|
"foo|bar"
; Escaping character... (") | ---> | "foo\"|bar" |
|
|
paredit-semicolon |
; |
|(frob grovel) | ---> | ;|
(frob grovel) |
|
(frob grovel) | | ---> | (frob grovel) ;| |
|
|
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 |
RET |
(let ((n (frobbotz))) |(display (+ n 1)
port)) | ---> | (let ((n (frobbotz)))
|(display (+ n 1)
port)) |
|
|
Command |
Keys |
Examples |
paredit-forward-slurp-sexp |
C-), M-right, ESC , ESC M-O D |
(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-}, M-left, ESC , ESC M-O C |
(foo (bar |baz quux) zot) | ---> | (foo (bar |baz) quux zot) |
|
|
paredit-backward-slurp-sexp |
C-(, C-M-left, ESC , ESC M-O d |
(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 , ESC M-O c |
(foo (bar baz |quux) zot) | ---> | (foo bar (baz |quux) zot) |
|
|