From 1ec4ab9eea4839a9253d1a003e217f386d266421 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 10 Sep 2017 03:06:26 -0400 Subject: [PATCH] Add config for web-mode and js2-mode --- .emacs.d/init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 327a535..cda92c9 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -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: