Auto-pair ( in lisps if cursor is before another (
This commit is contained in:
parent
527079094d
commit
0a7173b7f8
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@
|
|||
;; I likely don't want a new pair if adjacent to a word or opening brace
|
||||
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
||||
|
||||
;; In lisps ( should open a new form if before another parenthesis
|
||||
(sp-local-pair sp-lisp-modes "(" ")" :unless '(:rem sp-point-before-same-p))
|
||||
|
||||
;; Major-mode specific fixes
|
||||
(sp-local-pair '(ruby-mode enh-ruby-mode) "{" "}"
|
||||
:pre-handlers '(:rem sp-ruby-pre-handler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue