all repos — nixfiles @ 7a7f3c1caab84d65b051b593a69b349ea4442a9b

System and user configuration, managed by nix and home-manager

Emacs: setup javascript indentation rules
Alan Pearce alan@alanpearce.co.uk
Fri, 24 May 2013 10:52:24 +0100
commit

7a7f3c1caab84d65b051b593a69b349ea4442a9b

parent

7d03c01ed268d7dccd5dc74fa62ab44cb74b133d

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -998,10 +998,8 @@ (autopair-mode -1)               (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