Update web-mode config

This commit is contained in:
Tom Willemse 2018-07-16 20:50:45 -07:00
parent cb9fb07a46
commit f635ce335e

View file

@ -24,6 +24,13 @@
;;; Code: ;;; Code:
(setq web-mode-attr-indent-offset 2)
(setq web-mode-auto-quote-style 1)
(setq web-mode-code-indent-offset 2)
(setq web-mode-comment-style 2)
(setq web-mode-css-indent-offset 2)
(setq web-mode-css-indent-offset 2)
(add-hook 'web-mode-hook 'whitespace-only-tabs-mode) (add-hook 'web-mode-hook 'whitespace-only-tabs-mode)
(add-hook 'web-mode-hook 'flycheck-mode) (add-hook 'web-mode-hook 'flycheck-mode)
(add-hook 'web-mode-hook 'electric-pair-local-mode) (add-hook 'web-mode-hook 'electric-pair-local-mode)