summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2021-01-20 17:22:10 +0100
committerAlan Pearce2021-01-20 17:22:10 +0100
commit192527370d8248daa14ba8cedcb0d7c4369c134a (patch)
tree5a286647fd6bad2a884442dd45dc0dfa81ebe675 /user/emacs
parent0a017369a8d4be8bc658245c1f9bb8afed7030c5 (diff)
downloadnixfiles-192527370d8248daa14ba8cedcb0d7c4369c134a.tar.lz
nixfiles-192527370d8248daa14ba8cedcb0d7c4369c134a.tar.zst
nixfiles-192527370d8248daa14ba8cedcb0d7c4369c134a.zip
Emacs: assume html files are django-like templates
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 10b38484..3a0ad39a 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -815,7 +815,8 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
                 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))