Add config for web-mode and js2-mode

This commit is contained in:
Adam Goldsmith 2017-09-10 03:06:26 -04:00
parent d1a383de3a
commit 1ec4ab9eea

View File

@ -546,6 +546,18 @@
(setq jdee-server-dir "~/.emacs.d/jdee-server/target"
jdee-mode-line-format mode-line-format))
(use-package web-mode
:mode "\\.html?\\'"
:config
(setq web-mode-markup-indent-offset 2
web-mode-css-indent-offset 2
web-mode-code-indent-offset 2))
(use-package js2-mode
:mode "\\.js\\'"
:config
(setq js2-basic-offset 2))
;;; Local Variables
(add-to-list 'safe-local-eval-forms '(outline-hide-body))
;; Local Variables: