aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-29 22:08:31 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-29 22:08:31 +0800
commit50c5888353e544151e05a51007f4735c87ea58ee (patch)
treeb37df6bf38c4fbeabe652724f6464d3a8622a7b7
parent8e16e91545842006fa1031487f87d877d1e3f633 (diff)
downloaddotfiles-50c5888353e544151e05a51007f4735c87ea58ee.tar.bz2
spacemacs: Add indentation settings for js and web modes
-rw-r--r--_spacemacs.d/init.el14
1 files changed, 13 insertions, 1 deletions
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)