Autopair HTML <!-- --> more conservatively

This commit is contained in:
Henrik Lissner 2019-03-02 01:38:18 -05:00
parent 6d3df42352
commit 6a8b968807
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -69,7 +69,9 @@
;; Reasonable default pairs for HTML-style comments
(sp-local-pair (append sp--html-modes '(markdown-mode gfm-mode))
"<!--" "-->" :actions '(insert) :post-handlers '(("| " "SPC")))
"<!--" "-->"
:unless '(sp-point-before-word-p sp-point-before-same-p)
:actions '(insert) :post-handlers '(("| " "SPC")))
;; Disable electric keys in C modes because it interferes with smartparens
;; and custom bindings. We'll do it ourselves (mostly).