diff options
author | Tom Willemse | 2018-01-22 21:45:55 -0800 |
---|---|---|
committer | Tom Willemse | 2018-02-07 00:52:20 -0800 |
commit | 65739773b0bff2714363b44724ee8a67d44ab6fc (patch) | |
tree | 5cf1f6d51f2d3442e01d9a0c2de7070ec747321d /emacs/.emacs.d | |
parent | b955ed62bb3b983ea066bddf3f8f003d66ea125d (diff) | |
download | new-dotfiles-65739773b0bff2714363b44724ee8a67d44ab6fc.tar.gz new-dotfiles-65739773b0bff2714363b44724ee8a67d44ab6fc.zip |
Add some js2 and html mode config
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r-- | emacs/.emacs.d/init.org | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 63cda93..67cf092 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1207,12 +1207,27 @@ Computing Environment". (add-hook 'js2-mode-hook 'subword-mode) #+END_SRC - Set the basic offset to 2 spaces for JavaScript. + Enable ~flycheck-mode~ to run syntax checkers such as eslint. + + #+BEGIN_SRC emacs-lisp + (add-hook 'js2-mode-hook 'flycheck-mode) + #+END_SRC + + Set the default indentation to 2 spaces. #+BEGIN_SRC emacs-lisp (setq js2-basic-offset 2) #+END_SRC +** HTML mode + + Enable electric pairing so I don't have to worry about closing =<= + and ="= and such. + + #+BEGIN_SRC emacs-lisp + (add-hook 'html-mode-hook 'electric-pair-local-mode) + #+END_SRC + * Applications - [[file:init/dired-init.org][Dired]] :: The Emacs file manager. Very powerful, and I don't use it |