From 50c5888353e544151e05a51007f4735c87ea58ee Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 29 Oct 2016 22:08:31 +0800 Subject: spacemacs: Add indentation settings for js and web modes --- _spacemacs.d/init.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/_spacemacs.d/init.el b/_spacemacs.d/init.el index c449f70..3d8feb7 100644 --- a/_spacemacs.d/init.el +++ b/_spacemacs.d/init.el @@ -13,7 +13,7 @@ ;; ;; Aaron LI ;; Created: 2016-04-30 -;; Updated: 2016-10-06 +;; Updated: 2016-10-29 ;; @@ -430,6 +430,18 @@ (setq whitespace-line-column fill-column) (global-whitespace-mode) ;; + ;; Indentation settings + (setq-default + ;; `js2-mode' (JavaScript) + js2-basic-offset 2 + ;; `js-mode' (JSON) + js-indent-level 2 + ;; `web-mode': http://web-mode.org/ + web-mode-markup-indent-offset 2 + web-mode-css-indent-offset 2 + web-mode-code-indent-offset 2 + ) + ;; ;; Enable `company-mode' globally (global-company-mode) (setq company-idle-delay 0.1) -- cgit v1.2.2