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