From 8f223fca6d7b2dafb614d6db30daa1355b5493c1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 6 Feb 2018 14:36:26 -0800 Subject: Change the indentation for JavaScript --- emacs/.emacs.d/init.org | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 156c28b..9aa6c7c 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1214,6 +1214,12 @@ Computing Environment". (add-hook 'js2-mode-hook 'subword-mode) #+END_SRC + Set the basic offset to 2 spaces for JavaScript. + + #+BEGIN_SRC emacs-lisp + (setq js2-basic-offset 2) + #+END_SRC + * Applications - [[file:init/dired-init.org][Dired]] :: The Emacs file manager. Very powerful, and I don't use it -- cgit v1.2.3-54-g00ecf