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