diff options
author | 2016-10-10 22:32:04 +0200 | |
---|---|---|
committer | 2016-10-10 22:32:04 +0200 | |
commit | d435aab482a7bff61922997ee53026b0a3fb3c1b (patch) | |
tree | cc3d5b8851c3d551610dce2b561d8ad4b568cab2 /emacs/.emacs.d/init/js-mode-init.org | |
parent | e6f86a45211583f099615cd649e69b3c49a14a42 (diff) | |
download | new-dotfiles-d435aab482a7bff61922997ee53026b0a3fb3c1b.tar.gz new-dotfiles-d435aab482a7bff61922997ee53026b0a3fb3c1b.zip |
Turn on electric indent mode in js-mode buffers
Diffstat (limited to 'emacs/.emacs.d/init/js-mode-init.org')
-rw-r--r-- | emacs/.emacs.d/init/js-mode-init.org | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/js-mode-init.org b/emacs/.emacs.d/init/js-mode-init.org index e7836c1..e28e84d 100644 --- a/emacs/.emacs.d/init/js-mode-init.org +++ b/emacs/.emacs.d/init/js-mode-init.org @@ -8,3 +8,9 @@ Turn on electric pairing for js-mode buffers. #+BEGIN_SRC emacs-lisp (add-hook 'js-mode-hook 'electric-pair-local-mode) #+END_SRC + +Turn on electric indent mode for js-mode buffers. + +#+BEGIN_SRC emacs-lisp + (add-hook 'js-mode-hook 'electric-indent-local-mode) +#+END_SRC |