Shreyas Jamadagni
Shreyas Jamadagni

Reputation: 165

How to disable HTML mode in Emacs?

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?

Upvotes: 1

Views: 292

Answers (1)

Brett M
Brett M

Reputation: 178

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

Upvotes: 4

Related Questions