all repos — nixfiles @ b6c803102401ac3125b39cd6d4ff72ba38f599de

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

emacs: open tmpl files in web-mode
Alan Pearce alan@alanpearce.eu
Fri, 03 May 2024 00:19:43 +0200
commit

b6c803102401ac3125b39cd6d4ff72ba38f599de

parent

ae74f7ae134193dc7f132fe1c6f5c1c27ed17bf3

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

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -850,11 +850,12 @@ (use-package css-mode   :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))