summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-24 10:52:24 +0100
committerAlan Pearce2013-05-24 10:52:24 +0100
commit7a7f3c1caab84d65b051b593a69b349ea4442a9b (patch)
tree72c149020b65b3d63ddf4bf2b2f8317713aa2369 /emacs
parent7d03c01ed268d7dccd5dc74fa62ab44cb74b133d (diff)
downloadnixfiles-7a7f3c1caab84d65b051b593a69b349ea4442a9b.tar.lz
nixfiles-7a7f3c1caab84d65b051b593a69b349ea4442a9b.tar.zst
nixfiles-7a7f3c1caab84d65b051b593a69b349ea4442a9b.zip
Emacs: setup javascript indentation rules
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/emacs/init.el b/emacs/init.el
index e9e3d38a..d17031b4 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -998,10 +998,8 @@ Works with: arglist-cont-nonempty, arglist-close."
               (auto-indent-mode -1))
             (add-hook 'js3-mode-hook #'ap/javascript-setup)
             (setq js3-indent-level 4
-                  js3-expr-indent-offset 4
-                  js3-paren-indent-offset 4
-                  js3-square-indent-offset 4
-                  js3-curly-indent-offset 4)))
+                  js3-indent-tabs-mode t
+                  js3-global-externs '("$"))))
 
 (use-package mustache-mode
   :ensure t