diff options
author | 2014-11-11 14:57:07 +0100 | |
---|---|---|
committer | 2014-11-11 14:57:07 +0100 | |
commit | 10a1a0782e015fccd28f850d5f0773bd5c47700b (patch) | |
tree | 9340d159310c0904469dac6e90fe187e560b66f0 /emacs/.emacs.d | |
parent | 269ad348ac54e54ebed4dda59dc5bce78f86423b (diff) | |
download | dotfiles-10a1a0782e015fccd28f850d5f0773bd5c47700b.tar.gz dotfiles-10a1a0782e015fccd28f850d5f0773bd5c47700b.zip |
Add electric indent to javascript
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r-- | emacs/.emacs.d/init.org | 8 |
1 files changed, 8 insertions, 0 deletions
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 |