Add electric indent to javascript
This commit is contained in:
parent
269ad348ac
commit
10a1a0782e
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue