all repos — archive/dotfiles @ 04ecc495b78f33adf37967198e7b030d50f2b869

Superseded by nixfiles

Emacs: open twig files in web-mode
Alan Pearce alan@alanpearce.co.uk
Fri, 06 Jun 2014 15:46:16 +0100
commit

04ecc495b78f33adf37967198e7b030d50f2b869

parent

d7e339ebccbc364046373e01c660527fa781ca79

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

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -965,6 +965,7 @@ (add-hook 'web-mode-hook #'emmet-mode)))) 
 (req-package web-mode
   :mode (("/views/.*\\.php\\'" . web-mode)
+         ("\\.html\\.twig\\'" . web-mode)
          ("/templates/.*\\.php\\'" . web-mode))
   :config (setq web-mode-code-indent-offset 4
                 web-mode-css-indent-offset 4