Paredit - emacs minor mode

No description »
Neale Swinnerton

Does 
4
Things
Don't enter a list
without it!
Paredit
Emacs minor mode
Thanks for Listening

Neale Swinnerton
(@sw1nn) |
1. Matches Parentheses
2. Slurp / Barf
3. Changes Depth
Equivalent bindings for:
[ square brackets ]
" double quotes "

Clojure tweaks also for:
{ curly brackets }
it's true genius won't be obvious until you 
code in some list oriented language
(foo bar |) (baz)
C-)
(foo bar |(baz))
(foo bar |(baz)) 
C-}
(foo bar |)(baz)
(foo) (bar |baz) 
C-(
((foo) bar |baz)
((foo) bar |baz)
C-{
(foo) (bar |baz) 
(foo | bar baz)
(foo (| bar) baz)
M-(
(foo (bar | baz) quux)
(foo bar | baz quux)
M-s
4. Split / Join
(hello | world)
(hello) (world)
M-S
(hello) |(world)
(hello | world)
M-J
Forward
Backward
(foo (let [ x 5] |(sqrt n)) bar)
(foo |(sqrt n) bar)
M-<up>
(a (b c |d e) f)
(a b c| f)
M-<down>
wrap-around
splice
splice killing backward
splice killing forward
Install/Config/Enable
(a b | c d)
(
(a b ( | ) c d)
(a b | c d)
(a b c d) |
)
(a b c d) | 
(a b  c | )
<backspace>
split
join
https://github.com/technomancy/emacs-starter-kit
clojure-mode from marmalade repo

| (a b c d)
<delete>
( | b c d)
|( )
<backspace>
|
()|
|
Slurp
Barf
Slurp
Barf
<delete>
( | )
<delete>
C-M-<right> and C-M-<left> work too
C-<right>, C-<left> too,
but conflict in OSX Lion
http://www.emacswiki.org/emacs/ParEdit
Neale Swinnerton(@sw1nn)
slides: bit.ly/paredit

Loading comments...

Please log in to add your comment.

Report abuse

More presentations by Neale Swinnerton