Prioritize vue-mode over web-mode for *.vue files

This commit is contained in:
Henrik Lissner 2020-05-18 14:38:02 -04:00
parent c6fadf4776
commit d5d0ec3c91
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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")