Auto-pair ( in lisps if cursor is before another (

This commit is contained in:
Henrik Lissner 2019-07-12 14:17:26 +02:00
parent 527079094d
commit 0a7173b7f8
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -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)