Move sp-local-pair to :config of smartparens.

This commit is contained in:
person808 2015-05-25 09:38:39 -10:00 committed by syl20bnr
parent fafb9c4b3e
commit 27eba151b5

View file

@ -2567,9 +2567,6 @@ It is a string holding:
:documentation "Enable smartparens globally."
:evil-leader "t C-p")
;; don't create a pair with single quote in minibuffer
(sp-local-pair 'minibuffer-inactive-mode "'" nil :actions nil)
(setq sp-show-pair-delay 0
sp-show-pair-from-inside t ; fix paren highlighting in normal mode
sp-cancel-autoskip-on-backward-movement nil))
@ -2589,6 +2586,9 @@ It is a string holding:
(spacemacs/smartparens-pair-newline id action context)
(indent-according-to-mode))
;; don't create a pair with single quote in minibuffer
(sp-local-pair 'minibuffer-inactive-mode "'" nil :actions nil)
(sp-pair "{" nil :post-handlers
'(:add (spacemacs/smartparens-pair-newline-and-indent "RET")))
(sp-pair "[" nil :post-handlers