web-mode: fix smarty

This commit is contained in:
Jesús 2019-08-13 15:09:24 -05:00
parent e849d4be90
commit 0c5f0db3c5
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -18,7 +18,11 @@
(setq web-mode-enable-current-element-highlight t) (setq web-mode-enable-current-element-highlight t)
(set-face-background 'web-mode-current-element-highlight-face "#a3a3a3") (set-face-background 'web-mode-current-element-highlight-face "#a3a3a3")
;; Django hook ;; Fix smarty
(setq web-mode-engines-alist
'(("smarty" . "\\.tpl\\'")))
;; Django
;; require projectile ;; require projectile
(defun my-django-mode-hook () (defun my-django-mode-hook ()
(when (and (require 'web-mode nil t) (when (and (require 'web-mode nil t)