mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix error and clean
This commit is contained in:
@ -53,7 +53,7 @@
|
||||
:config
|
||||
(add-hook! 'unityjs-mode-hook
|
||||
(enable-tab-width-2)
|
||||
(setq js-indent-level 2))
|
||||
(setq js-indent-level 2)))
|
||||
|
||||
|
||||
(provide 'init-js)
|
||||
|
@ -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)))
|
||||
|
||||
|
Reference in New Issue
Block a user