all repos — nixfiles @ 8214342af8a51b9ed63d9bea27cbf7b8051f0b4b

System and user configuration, managed by nix and home-manager

Emacs: setup web-mode
Alan Pearce alan@alanpearce.co.uk
Mon, 02 Sep 2013 09:29:29 +0100
commit

8214342af8a51b9ed63d9bea27cbf7b8051f0b4b

parent

7d584cc54ba2162560334261a6f1acfb78530603

1 files changed, 8 insertions(+), 0 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -1170,6 +1170,14 @@ (use-package sgml-mode   :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