[Fix #433] Disable problematic binding M-[
This commit is contained in:
parent
7507cecb9f
commit
150ac9e510
2 changed files with 4 additions and 2 deletions
|
@ -111,7 +111,8 @@ 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 "[")))
|
||||
;; FIXME: pick terminal friendly binding
|
||||
;; (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
|
||||
|
|
|
@ -40,7 +40,8 @@
|
|||
|
||||
;; wrap keybindings
|
||||
(define-key lisp-mode-shared-map (kbd "M-(") (lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "(")))
|
||||
(define-key lisp-mode-shared-map (kbd "M-[") (lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "[")))
|
||||
;; FIXME: Pick terminal-friendly binding.
|
||||
;;(define-key lisp-mode-shared-map (kbd "M-[") (lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "[")))
|
||||
(define-key lisp-mode-shared-map (kbd "M-\"") (lambda (&optional arg) (interactive "P") (sp-wrap-with-pair "\"")))
|
||||
|
||||
;; a great lisp coding hook
|
||||
|
|
Loading…
Reference in a new issue