summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-03 00:19:43 +0200
committerAlan Pearce2024-05-03 00:19:43 +0200
commitb6c803102401ac3125b39cd6d4ff72ba38f599de (patch)
treec5d3e6ffded6a5ef1a353d5c2d277ad31e90de61
parentae74f7ae134193dc7f132fe1c6f5c1c27ed17bf3 (diff)
downloadnixfiles-b6c803102401ac3125b39cd6d4ff72ba38f599de.tar.lz
nixfiles-b6c803102401ac3125b39cd6d4ff72ba38f599de.tar.zst
nixfiles-b6c803102401ac3125b39cd6d4ff72ba38f599de.zip
emacs: open tmpl files in web-mode
-rw-r--r--user/emacs/init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 8038298a..60417b95 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -850,11 +850,12 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
   :defer t)
 
 (use-package web-mode
-  :mode (("\\.html?.erb\\'" . web-mode))
+  :mode (("\\.html?.erb\\'" . web-mode)
+         ("\\.tmpl\\'" . web-mode))
   :config (setq web-mode-enable-auto-pairing nil
                 web-mode-style-padding 2
                 web-mode-script-padding 2
-                web-mode-engines-alist '(("go" . "\\.html?\\'"))))
+                web-mode-engines-alist '(("go" . "\\.tmpl\\'"))))
 
 (use-package emmet-mode
   :ghook '(web-mode-hook sgml-mode-hook))