aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2018-02-06 14:36:26 -0800
committerGravatar Tom Willemse2018-02-06 14:36:26 -0800
commit8f223fca6d7b2dafb614d6db30daa1355b5493c1 (patch)
tree32b242f3ea185dc45ae43740f0c228502f38d0f8 /emacs
parent28af36faa3120dd97f24228334c97b3c29d61701 (diff)
downloadnew-dotfiles-8f223fca6d7b2dafb614d6db30daa1355b5493c1.tar.gz
new-dotfiles-8f223fca6d7b2dafb614d6db30daa1355b5493c1.zip
Change the indentation for JavaScript
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org6
1 files changed, 6 insertions, 0 deletions
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