smartparens: improve brace autoclosing
This commit is contained in:
parent
57a69602e8
commit
aac4d4ee48
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue