all repos — nixfiles @ 2d0f5bf60f72f70296dc55d26b8acb22ebd83f28

System and user configuration, managed by nix and home-manager

Emacs: use web-mode for html
Alan Pearce alan@alanpearce.eu
Sat, 11 Jan 2020 20:43:26 +0100
commit

2d0f5bf60f72f70296dc55d26b8acb22ebd83f28

parent

a89da63bb0173969e58ae54253606dace4a8a3b0

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M user/emacs/.emacs.d/init.eluser/emacs/.emacs.d/init.el
@@ -782,7 +782,8 @@ :config (progn             (setq css-indent-offset 2)))
 
 (use-package web-mode
-  :mode (("\\.tsx\\'" . web-mode))
+  :mode (("\\.tsx\\'" . web-mode)
+         ("\\.html?\\'" . web-mode))
   :config (setq web-mode-enable-auto-pairing nil
                 web-mode-code-indent-offset 2
                 web-mode-markup-indent-offset 2