From 10a1a0782e015fccd28f850d5f0773bd5c47700b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 11 Nov 2014 14:57:07 +0100 Subject: [PATCH] Add electric indent to javascript --- emacs/.emacs.d/init.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index dbe9e8f..c88e658 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1215,6 +1215,14 @@ web-mode-markup-indent-offset 4)) #+END_SRC +** JavaScript + + Turn on electric indenting for JavaScript. + + #+BEGIN_SRC emacs-lisp + (add-hook 'js2-mode-hook #'electric-indent-local-mode) + #+END_SRC + * Load custom file I don't really use the Emacs customization interface much, but I