emacs: open tmpl files in web-mode
Alan Pearce alan@alanpearce.eu
Fri, 03 May 2024 00:19:43 +0200
1 files changed, 3 insertions(+), 2 deletions(-)
jump to
M user/emacs/init.el → user/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))