Emacs: automatically open gotmpl files in web-mode
Alan Pearce alan@alanpearce.eu
Sat, 08 Jun 2024 20:46:52 +0200
1 files changed, 3 insertions(+), 1 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -893,11 +893,13 @@ :defer t) (use-package web-mode :mode (("\\.html?.erb\\'" . web-mode) + ("\\.gotmpl\\'" . 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" . "\\.tmpl\\'")))) + web-mode-engines-alist '(("go" . "\\.tmpl\\'") + ("go" . "\\.gotmpl\\'")))) (use-package emmet-mode :ghook '(web-mode-hook sgml-mode-hook))