mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
Rethink smartparens config #181
+ Parts of my smartparens config that were personal preference have been moved to my private module. + The css-mode config was redundant and was removed + Moved lang-specific config to their respective modules + Markdown config was redundant with native electric support, and thus removed.
This commit is contained in:
@@ -19,6 +19,21 @@
|
||||
(apply orig-fn args)))
|
||||
(advice-add #'tramp-read-passwd :around #'+hlissner*no-authinfo-for-tramp)
|
||||
|
||||
;;
|
||||
(after! smartparens
|
||||
;; Auto-close more conservatively
|
||||
(let ((unless-list '(sp-point-before-word-p
|
||||
sp-point-after-word-p
|
||||
sp-point-before-same-p)))
|
||||
(sp-pair "'" nil :unless unless-list)
|
||||
(sp-pair "\"" nil :unless unless-list))
|
||||
(sp-pair "{" nil :post-handlers '(("||\n[i]" "RET") ("| " " "))
|
||||
:unless '(sp-point-before-word-p sp-point-before-same-p))
|
||||
(sp-pair "(" nil :post-handlers '(("||\n[i]" "RET") ("| " " "))
|
||||
:unless '(sp-point-before-word-p sp-point-before-same-p))
|
||||
(sp-pair "[" nil :post-handlers '(("| " " "))
|
||||
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
||||
|
||||
|
||||
;;
|
||||
(after! doom-themes
|
||||
|
Reference in New Issue
Block a user