aboutsummaryrefslogtreecommitdiff
path: root/home/.emacs.d/config/web-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'home/.emacs.d/config/web-mode.el')
-rw-r--r--home/.emacs.d/config/web-mode.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/home/.emacs.d/config/web-mode.el b/home/.emacs.d/config/web-mode.el
new file mode 100644
index 0000000..5a1034d
--- /dev/null
+++ b/home/.emacs.d/config/web-mode.el
@@ -0,0 +1,9 @@
+(require 'web-mode)
+(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
+(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
+(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode))
+(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
+(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
+(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
+(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
+(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))