summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-08 20:46:52 +0200
committerAlan Pearce2024-06-09 18:28:22 +0200
commitc46e0e72210f0b4e977dab75ceccae51969523ae (patch)
treebbaa0c8ce86a157c1ea39dbeb5772b0518a19b5a
parent90d3e62be2b2f923c85e1bc4492e42bad63a1467 (diff)
downloadnixfiles-c46e0e72210f0b4e977dab75ceccae51969523ae.tar.lz
nixfiles-c46e0e72210f0b4e977dab75ceccae51969523ae.tar.zst
nixfiles-c46e0e72210f0b4e977dab75ceccae51969523ae.zip
Emacs: automatically open gotmpl files in web-mode
-rw-r--r--user/emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index b477d6bf..35e3e92e 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -893,11 +893,13 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
 
 (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))