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: aprekates
Subject: Re: How can i enable webmode?
Date: Sun, 10 May 2020 17:40:33 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Thanks , i had the impression that package manager would handle that.

I wonder , is that step a webmode exception or
a necessary step after an 'installation' of every package?

On 10/5/20 2:05 μ.μ., Jakub Jankiewicz wrote:

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]