Add join and split sexp smartparens keybindings

This commit is contained in:
Tom Willemse 2013-07-03 00:11:21 +02:00
parent 7e1a58c7a0
commit 2d9e5bd1f0

View file

@ -186,7 +186,9 @@ Also change directories to current working directory."
(local-set-key [remap kill-word] 'sp-kill-word) (local-set-key [remap kill-word] 'sp-kill-word)
(local-set-key [remap backward-kill-word] 'sp-backward-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-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) (defun turn-off (modes)
"Turn off each mode in MODES." "Turn off each mode in MODES."