From 65739773b0bff2714363b44724ee8a67d44ab6fc Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 22 Jan 2018 21:45:55 -0800 Subject: Add some js2 and html mode config --- emacs/.emacs.d/init.org | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'emacs') 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 -- cgit v1.2.3-54-g00ecf