Skip to content

Commit

Permalink
web-mode for erb files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordon Biondo committed Aug 18, 2020
1 parent cc3a011 commit 706adc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 706adc0

Please sign in to comment.