summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-07-03 00:11:21 +0200
committerGravatar Tom Willemse2013-07-03 00:11:21 +0200
commit2d9e5bd1f0b6609d755bd627dd0cccf956d53a0b (patch)
treeb48846060869925bd9cc6cfb771081f8c460d558
parent7e1a58c7a0179880e9b1c42f6d11f98ebee85941 (diff)
downloaddotfiles-2d9e5bd1f0b6609d755bd627dd0cccf956d53a0b.tar.gz
dotfiles-2d9e5bd1f0b6609d755bd627dd0cccf956d53a0b.zip
Add join and split sexp smartparens keybindings
-rw-r--r--emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 3d14604..6f32baa 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -186,7 +186,9 @@ Also change directories to current working directory."
(local-set-key [remap kill-word] 'sp-kill-word)
(local-set-key [remap backward-kill-word] 'sp-backward-kill-word)
(local-set-key (kbd "<C-left>") 'sp-forward-barf-sexp)
- (local-set-key (kbd "<C-right>") 'sp-forward-slurp-sexp))
+ (local-set-key (kbd "<C-right>") 'sp-forward-slurp-sexp)
+ (local-set-key (kbd "M-J") 'sp-join-sexp)
+ (local-set-key (kbd "M-S") 'sp-split-sexp))
(defun turn-off (modes)
"Turn off each mode in MODES."