From d63b6adffb336d70681b42f12c157b8e2a25cdae Mon Sep 17 00:00:00 2001 From: Ahir Reddy Date: Mon, 4 Aug 2014 14:26:54 -0700 Subject: [PATCH] Set stupid indenting in javascript --- .emacs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.emacs b/.emacs index be03183b0..9f0c069f5 100644 --- a/.emacs +++ b/.emacs @@ -104,9 +104,9 @@ (add-to-list 'auto-mode-alist '("\\.json$" . js-mode)) (setq js2-missing-semi-one-line-override t) -(setq js2-basic-offset 2) ; 2 spaces for indentation (if you prefer 2 spaces instead of default 4 spaces for tab) -(setq c-default-style "linux" - c-basic-offset 2) +(setq js-indent-level 2) +(setq js2-basic-offset 1) ; 2 spaces for indentation (if you prefer 2 spaces instead of default 4 spaces for tab) +(setq c-basic-offset 2) ;; add from jslint global variable declarations to js2-mode globals list ;; modified from one in http://www.emacswiki.org/emacs/Js2Mode