Emacs: open html.erb files with web-mode
Alan Pearce alan@alanpearce.eu
Thu, 01 Jun 2023 14:59:38 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M user/emacs/init.el → user/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