summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-01-07 02:38:48 +0100
committerGravatar Tom Willemse2015-01-07 02:38:48 +0100
commitdb1eea8e7ad223343bef421b689a75de585f0911 (patch)
treea60a6510acab81c3c74f4b2622d5234a11d4c2b4 /emacs/.emacs.d/init.org
parentf1dc2d9b94c72203306002e4510ca2839c3ba8e9 (diff)
downloaddotfiles-db1eea8e7ad223343bef421b689a75de585f0911.tar.gz
dotfiles-db1eea8e7ad223343bef421b689a75de585f0911.zip
Use web-mode for *.html.erb
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org7
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 9ae5c36..9ed1ed3 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1234,6 +1234,13 @@
web-mode-markup-indent-offset 4))
#+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
Turn on electric indenting for JavaScript.