Fix error and clean

This commit is contained in:
Henrik Lissner 2015-04-09 17:26:15 -04:00
parent 378b903566
commit 3f0a4e7adf
2 changed files with 5 additions and 5 deletions

View file

@ -26,10 +26,10 @@
(add-hook! 'web-mode-hook (setq web-mode-enable-auto-pairing nil))
(defun sp-web-mode-is-code-context (id action context)
(when (and (eq action 'insert)
(not (or (get-text-property (point) 'part-side)
(get-text-property (point) 'block-side))))
t))
(when (and (eq action 'insert)
(not (or (get-text-property (point) 'part-side)
(get-text-property (point) 'block-side))))
t))
(sp-local-pair 'web-mode "<" nil :when '(sp-web-mode-is-code-context)))