Define a few basic wrapping keybindings

This commit is contained in:
Bozhidar Batsov 2013-10-17 19:20:28 +03:00
parent 5cc16a8e25
commit 9eca62cd76
2 changed files with 9 additions and 0 deletions

View file

@ -110,6 +110,10 @@ Will only occur if prelude-whitespace is also enabled."
(show-smartparens-global-mode +1)
(define-key prog-mode-map (kbd "M-(") (lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "(")))
(define-key prog-mode-map (kbd "M-[") (lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "[")))
(define-key prog-mode-map (kbd "M-\"") (lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "\"")))
;; disable annoying blink-matching-paren
(setq blink-matching-paren nil)