From 706adc0ae82129d0407f26cb2ce8758e87e702be Mon Sep 17 00:00:00 2001 From: Jordon Biondo Date: Tue, 18 Aug 2020 11:16:11 -0400 Subject: [PATCH] web-mode for erb files --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 5316912..2a08364 100644 --- a/init.el +++ b/init.el @@ -654,7 +654,7 @@ :ensure t) (use-package web-mode - :mode ("\\.\\(html\\|hbs\\|vue\\)$" . web-mode) + :mode ("\\.\\(html\\|hbs\\|vue\\|erb\\)$" . web-mode) :config (progn (add-hook 'web-mode-hook @@ -667,7 +667,7 @@ (defun jordon-web-mode-setup () (let ((offset (if (and (buffer-file-name) - (string-match-p "\.\\(hbs\\|vue\\)$" (buffer-file-name))) + (string-match-p "\.\\(hbs\\|vue\\|erb\\)$" (buffer-file-name))) 2 4))) (setq web-mode-code-indent-offset offset