.emacs.d

My Emacs configuration files.
Log | Files | Refs | README

commit e2c3bc3b1798abd8d02ba3211d86c8d962a1c726
parent f90980abb2072207565df0dc20db5317af645b19
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Thu,  2 Jul 2015 08:56:12 -0400

Add twig to web-mode.

Diffstat:
Mlisp/setup-web-mode.el | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/lisp/setup-web-mode.el b/lisp/setup-web-mode.el @@ -1,5 +1,6 @@ -;; Web-Mode -;; Is an autonomous emacs major-mode for editing web templates: HTML documents embedding CSS / JavaScript and Server blocks. +;; Web-Mode Is an autonomous emacs major-mode for editing web +;; templates: HTML documents embedding CSS / JavaScript and Server +;; blocks. (add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode)) @@ -9,10 +10,11 @@ (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 '("\\.twig\\'" . web-mode)) -(defun web-mode-hook () - "Hooks for Web mode." - (setq web-mode-markup-indent-offset 4) ) +(defun web-mode-hook () + "Hooks for Web mode." + (setq web-mode-markup-indent-offset 4) ) (add-hook 'web-mode-hook 'web-mode-hook) (provide 'setup-web-mode)