Use django engine for .dj.html
extension to in web mode
This commit is contained in:
parent
2698021728
commit
6c38b1bf0c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user