all repos — nixfiles @ 192527370d8248daa14ba8cedcb0d7c4369c134a

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

Emacs: assume html files are django-like templates
Alan Pearce alan@alanpearce.eu
Wed, 20 Jan 2021 17:22:10 +0100
commit

192527370d8248daa14ba8cedcb0d7c4369c134a

parent

0a017369a8d4be8bc658245c1f9bb8afed7030c5

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

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -815,7 +815,8 @@ web-mode-code-indent-offset 2                 web-mode-markup-indent-offset 2
                 web-mode-css-indent-offset 2
                 web-mode-style-padding 0
-                web-mode-script-padding 0))
+                web-mode-script-padding 0
+                web-mode-engines-alist '((django . "\\.html?\\'"))))
 
 (use-package emmet-mode
   :ghook '(web-mode-hook sgml-mode-hook))