Add electric indent to javascript

This commit is contained in:
Tom Willemse 2014-11-11 14:57:07 +01:00
parent 269ad348ac
commit 10a1a0782e

View file

@ -1215,6 +1215,14 @@
web-mode-markup-indent-offset 4)) web-mode-markup-indent-offset 4))
#+END_SRC #+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 * Load custom file
I don't really use the Emacs customization interface much, but I I don't really use the Emacs customization interface much, but I