summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2013-11-10 23:18:19 -0500
committerKyle Meyer <kyle@kyleam.com>2013-11-10 23:18:19 -0500
commita11581c962f13b01e7be64214ab9271501f22ef6 (patch)
tree5d7cc4e80cabe5df9d2d4800b4e2d7fcf26a4dd6 /init
parentd04b152ae9164805265ff92eceea23f2d5f530d6 (diff)
downloademacs.d-a11581c962f13b01e7be64214ab9271501f22ef6.tar.gz
Add new paredit barf/slurp bindings
Diffstat (limited to 'init')
-rw-r--r--init/km-elisp.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/init/km-elisp.el b/init/km-elisp.el
index b9d46e9..811fd37 100644
--- a/init/km-elisp.el
+++ b/init/km-elisp.el
@@ -3,3 +3,10 @@
t)
(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
+
+(eval-after-load "paredit"
+ '(progn
+ (define-key paredit-mode-map (kbd "C-,") 'paredit-forward-slurp-sexp)
+ (define-key paredit-mode-map (kbd "C-.") 'paredit-forward-barf-sexp)
+ (define-key paredit-mode-map (kbd "C-M-,") 'paredit-backward-slurp-sexp)
+ (define-key paredit-mode-map (kbd "C-M-.") 'paredit-backward-barf-sexp)))