Use web-mode for *.html.erb
This commit is contained in:
parent
f1dc2d9b94
commit
db1eea8e7a
1 changed files with 7 additions and 0 deletions
|
@ -1234,6 +1234,13 @@
|
||||||
web-mode-markup-indent-offset 4))
|
web-mode-markup-indent-offset 4))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Use it for ~.html.erb~ files.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(oni:eval-after-init
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.html\\.erb$" . web-mode)))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** JavaScript
|
** JavaScript
|
||||||
|
|
||||||
Turn on electric indenting for JavaScript.
|
Turn on electric indenting for JavaScript.
|
||||||
|
|
Loading…
Reference in a new issue