Minor reformatting & refactors across the board

This commit is contained in:
Henrik Lissner 2021-02-25 13:56:41 -05:00
parent 03fa2eafee
commit 1274de3d34
9 changed files with 24 additions and 15 deletions

View file

@ -118,8 +118,8 @@
;;; :completion
(map! (:when (featurep! :completion company)
:i "C-@" (cmds! (not (minibufferp)) #'+company/complete)
:i "C-SPC" (cmds! (not (minibufferp)) #'+company/complete)
:i "C-@" (cmds! (not (minibufferp)) #'company-complete-common)
:i "C-SPC" (cmds! (not (minibufferp)) #'company-complete-common)
(:after company
(:map company-active-map
"C-w" nil ; don't interfere with `evil-delete-backward-word'

View file

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