Use django engine for .dj.html extension to in web mode

This commit is contained in:
Adam Goldsmith 2022-02-01 00:01:13 -05:00
parent 2698021728
commit 6c38b1bf0c

View File

@ -862,7 +862,12 @@
web-mode-script-padding nil web-mode-script-padding nil
web-mode-style-padding nil web-mode-style-padding nil
web-mode-enable-auto-indentation 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 (use-package vue-mode
:config :config