From 8214342af8a51b9ed63d9bea27cbf7b8051f0b4b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 2 Sep 2013 09:29:29 +0100 Subject: Emacs: setup web-mode --- emacs/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index c26d1428..2d80bc81 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -1170,6 +1170,14 @@ Works with: arglist-cont-nonempty, arglist-close." :defer t :config (setq sgml-basic-offset 4)) +(use-package web-mode + :defer t + :mode (("/views/.*\\.php\\'" . web-mode) + ("/templates/.*\\.php\\'" . web-mode)) + :config (setq web-mode-code-indent-offset 4 + web-mode-css-indent-offset 4 + web-mode-markup-indent-offset 4)) + ;;;; Windows & Frames (setq frame-title-format -- cgit 1.4.1