all repos — nixfiles @ d107462b3c666b783e066a8e97923b55c556a0c5

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

Emacs: open html.erb files with web-mode
Alan Pearce alan@alanpearce.eu
Thu, 01 Jun 2023 14:59:38 +0200
commit

d107462b3c666b783e066a8e97923b55c556a0c5

parent

bf039db301a6e88d4e8ccfca0fc3046ac7d1aa0e

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

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -876,7 +876,8 @@ :config (progn             (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