help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can i enable webmode?


From: Jakub Jankiewicz
Subject: Re: How can i enable webmode?
Date: Sun, 10 May 2020 13:05:22 +0200


On Sun, 10 May 2020 13:02:14 +0300
aprekates <aprekates@posteo.net> wrote:

> GNU Emacs 26.1 (build 2, x86_64-pc-linux-gn
> 
> I installed with M-x package-list  webmode but
> 
> html files still open in html+ mode.

You need to actually tell emacs to use web-mode for html files.

I have this in my emacs file:

(require 'web-mode)

(add-to-list 'auto-mode-alist
("\\.\\(php\\|php\\.in\\|xml\\|twig\\|rss\\|xsl\\|svg\\|glade\\|rng\\|kml\\|html\\|xhtml\\)\\'"
. web-mode))

--
Jakub Jankiewicz, Web Developer
https://jcubic.pl/me



reply via email to

[Prev in Thread] Current Thread [Next in Thread]