Mercurial > hg > dotemacs
diff dotemacs.el @ 131:b9393ecfcc51
web-mode: make django the engine for .html files
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 28 Aug 2015 13:05:25 -0400 |
parents | 3400a312e7f8 |
children | 9b8966cff478 |
line wrap: on
line diff
--- a/dotemacs.el +++ b/dotemacs.el @@ -73,6 +73,13 @@ (global-unset-key (kbd "C-x C-z")) (global-set-key (kbd "C-x C-z") 'gud-stop-subjob) +;; web-mode doesn't seem to have another way of figuring out which +;; engine to use, but Django templates is all I care about for now. +(setq web-mode-engines-alist + '(("django" . "\\.html\\'")) + +) + ;;; H/T Stefan Monnier (defun unfill-paragraph (&optional region) "Takes a multi-line paragraph and makes it into a single line of text."