[Top][All Lists]

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

Re: How can i enable webmode?

From: 조성빈
Subject: Re: How can i enable webmode?
Date: Mon, 11 May 2020 00:35:46 +0900

aprekates <> 작성:

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

The package manager only ‘installs’ the elisp files.

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

Usually (almost always), you have to add some code to your init file to
trigger it. For major modes, it’s usually adding it to auto-mode-alist. For
minor modes, you would have to activate the minor modes if you would want them
to be turned on from startup, and for ones that you would only like to be
turned on for some major modes, you add a major mode hook to turn the minor
mode on.

On 10/5/20 2:05 μ.μ., Jakub Jankiewicz wrote:
On Sun, 10 May 2020 13:02:14 +0300
aprekates <> 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
. web-mode))

Jakub Jankiewicz, Web Developer

reply via email to

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