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: H. Dieter Wilhelm
Subject: Re: How can i enable webmode?
Date: Sun, 10 May 2020 18:13:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Alexis Roda <alexis.roda.villalonga@gmail.com> writes:

> No, the package manager doesn't mess with your configuration.
>
> A package is just a bunch of files sitting on you disk "passively". In
> order for a package to become "active" you must "enable" it from your
> configuration. This can be done in many ways depending on the use case:
>
> - adding a major mode to auto-mode-alist
> - calling a function from a hook
> - requiring the package
> - by using a function that has an autoload
> - ...

That is what I've experienced from the package manager so far.  :-) But
my feeling is that for small packages which do not require a lot of
customisation and are unobtrusive it makes sense to trigger their
functionality without additional user action.

For example the Melpa package `inform' is activating itsel during
installation (and maybe by restarting Emacs in some situations).  The
motivation is: If you are interested you'll have it without much ado and
if you don't like it any more just uninstall the small package.

Does it make sense or do you regard this behaviour as impolite?

     Dieter

>
> HTH
>
>
> Missatge de aprekates <aprekates@posteo.net> del dia dg., 10 de maig 2020 a
> les 16:40:
>
>> Thanks , i had the impression that package manager would handle that.
>>
>>
>>
>> On 10/5/20 1:31 μ.μ., Alexis Roda wrote:
>>
>> Hi Alexandros,
>>
>> Can't find webmode in my packages list. Assuming you meant web-mode.
>>
>> According to web-mode's web page (http://web-mode.org), add in your
>> .emacs:
>>
>>     (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
>>
>> The change will take effect the next time you open emacs.
>>
>>
>> HTH
>>
>> Missatge de aprekates <aprekates@posteo.net> del dia dg., 10 de maig 2020
>> a les 12:02:
>>
>>> 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.
>>>
>>> Alexandros
>>>
>>>
>>>
>

-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany



reply via email to

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