Prioritize vue-mode over web-mode for *.vue files
This commit is contained in:
parent
c6fadf4776
commit
d5d0ec3c91
1 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,6 @@
|
||||||
:mode "\\.hbs\\'"
|
:mode "\\.hbs\\'"
|
||||||
:mode "\\.mustache\\'"
|
:mode "\\.mustache\\'"
|
||||||
:mode "\\.svelte\\'"
|
:mode "\\.svelte\\'"
|
||||||
:mode "\\.vue\\'"
|
|
||||||
:mode "\\.twig\\'"
|
:mode "\\.twig\\'"
|
||||||
:mode "\\.jinja2?\\'"
|
:mode "\\.jinja2?\\'"
|
||||||
:mode "wp-content/themes/.+/.+\\.php\\'"
|
:mode "wp-content/themes/.+/.+\\.php\\'"
|
||||||
|
@ -19,6 +18,12 @@
|
||||||
;; does not officially support JSX/TSX. See
|
;; does not officially support JSX/TSX. See
|
||||||
;; https://github.com/emacs-typescript/typescript.el/issues/4
|
;; https://github.com/emacs-typescript/typescript.el/issues/4
|
||||||
:mode "\\.tsx\\'"
|
:mode "\\.tsx\\'"
|
||||||
|
:init
|
||||||
|
;; If the user has installed `vue-mode' then, by appending this to
|
||||||
|
;; `auto-mode-alist' rather than prepending it, its autoload will have
|
||||||
|
;; priority over this one.
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.vue\\'" . web-mode) 'append)
|
||||||
|
:mode "\\.vue\\'"
|
||||||
:config
|
:config
|
||||||
(set-docsets! 'web-mode "HTML" "CSS" "Twig" "WordPress")
|
(set-docsets! 'web-mode "HTML" "CSS" "Twig" "WordPress")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue