I want to use web-mode as my major mode for my web development needs but HTML mode is always there instead of web-mode. So is there any way to disable HTML mode in emacs?
You need to add html to the list of files to use web-mode
with. You can do this by adding the following line to your init.el
file
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.