Autopair HTML <!-- --> more conservatively
This commit is contained in:
parent
6d3df42352
commit
6a8b968807
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@
|
||||||
|
|
||||||
;; Reasonable default pairs for HTML-style comments
|
;; Reasonable default pairs for HTML-style comments
|
||||||
(sp-local-pair (append sp--html-modes '(markdown-mode gfm-mode))
|
(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
|
;; Disable electric keys in C modes because it interferes with smartparens
|
||||||
;; and custom bindings. We'll do it ourselves (mostly).
|
;; and custom bindings. We'll do it ourselves (mostly).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue