Minor reformatting & refactors across the board
This commit is contained in:
parent
03fa2eafee
commit
1274de3d34
9 changed files with 24 additions and 15 deletions
|
@ -100,7 +100,11 @@
|
|||
(dolist (brace '("(" "{" "["))
|
||||
(sp-pair brace nil
|
||||
:post-handlers '(("||\n[i]" "RET") ("| " "SPC"))
|
||||
;; I likely don't want a new pair if adjacent to a word or opening brace
|
||||
;; Don't autopair opening braces if before a word character or
|
||||
;; other opening brace. The rationale: it interferes with manual
|
||||
;; balancing of braces, and is odd form to have s-exps with no
|
||||
;; whitespace in between, e.g. ()()(). Insert whitespace if
|
||||
;; genuinely want to start a new form in the middle of a word.
|
||||
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
||||
|
||||
;; In lisps ( should open a new form if before another parenthesis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue