summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-06-01 14:59:38 +0200
committerAlan Pearce2023-06-01 14:59:38 +0200
commitd107462b3c666b783e066a8e97923b55c556a0c5 (patch)
tree8fbb6fb261f12d23bec18897c8f6ccdd41695937 /user
parentbf039db301a6e88d4e8ccfca0fc3046ac7d1aa0e (diff)
downloadnixfiles-d107462b3c666b783e066a8e97923b55c556a0c5.tar.lz
nixfiles-d107462b3c666b783e066a8e97923b55c556a0c5.tar.zst
nixfiles-d107462b3c666b783e066a8e97923b55c556a0c5.zip
Emacs: open html.erb files with web-mode
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 50d93d2b..63e98bd9 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -876,7 +876,8 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             (setq css-indent-offset 2)))
 
 (use-package web-mode
-  :mode (("\\.html?\\'" . web-mode))
+  :mode (("\\.html?\\'" . web-mode)
+         ("\\.html?.erb\\'" . web-mode))
   :config (setq web-mode-enable-auto-pairing nil
                 web-mode-code-indent-offset 2
                 web-mode-markup-indent-offset 2