From aac4d4ee481db93161411431a82df56e0d223de0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 18 Jan 2016 01:44:15 -0500 Subject: [PATCH] smartparens: improve brace autoclosing --- core/core-editor.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index 0e94ca6d9..2f43394a9 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -169,11 +169,11 @@ enable multiple minor modes for the same regexp.") (add-hook 'evil-replace-state-exit-hook 'turn-on-smartparens-mode) ;; Auto-close more conservatively - (sp-pair "{" "}" :post-handlers '(("||\n[i]" "RET") ("| " " ")) + (sp-pair "{" nil :post-handlers '(("||\n[i]" "RET") ("| " " ")) :unless '(sp-point-before-word-p sp-point-before-same-p)) - (sp-pair "(" ")" :post-handlers '(("||\n[i]" "RET") ("| " " ")) + (sp-pair "(" nil :post-handlers '(("||\n[i]" "RET") ("| " " ")) :unless '(sp-point-before-word-p sp-point-before-same-p)) - (sp-pair "[" "]" :post-handlers '(("| " " ")) + (sp-pair "[" nil :post-handlers '(("| " " ")) :unless '(sp-point-before-word-p sp-point-before-same-p)) ;; Support for generics/templates