It seems that web-mode has supported Vue.js since May 2017, the "Venora Release".

Configuring Emacs to handle Vue.js files (extension .vue) is as easy as writing

(add-to-list 'auto-mode-alist '("\\.vue\\'" . web-mode))

in one's .emacs file.

But web-mode does not like the <template> tag. What is the right .emacs setup/config?

1 Answer 1


I belive your configuration is right. And I think you meant this issue. It seems to be solved in Jan 31, 2019. Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.