diff --git a/.emacs.d/init.el b/.emacs.d/init.el index a68995c..aa0e616 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -862,7 +862,12 @@ web-mode-script-padding nil web-mode-style-padding nil web-mode-enable-auto-indentation nil - web-mode-enable-comment-annotation t)) + web-mode-enable-comment-annotation t) + + (let ((regexps (cdr (assoc "django" web-mode-engine-file-regexps)))) + (unless (string-match-p "dj\\.html" regexps) + (push `("django" . ,(replace-regexp-in-string "djhtml" "dj\\\\.html\\\\|djhtml" regexps)) + web-mode-engine-file-regexps)))) (use-package vue-mode :config