info-gnus-english
[Top][All Lists]
Advanced

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

Re: use-package :custom causes gnus to load


From: Juan José García-Ripoll
Subject: Re: use-package :custom causes gnus to load
Date: Sat, 28 Oct 2023 16:40:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Your below example shows using :config and an explicit setq statement to
change the value of that variable. I found that this approach *does not*
trigger loading gnus, but using the :custom field of use-package does. I
cannot really fathom why.

Bartosz Kaczyński <bkaczynski@posteo.net> writes:
> Juan José García-Ripoll <juanjose.garciaripoll@gmail.com> writes:
>
>> Hi,
>
> Hi,
>
>>
>> I have a stupid peeve with my current configuration, which relies on
>> `use-package` to defer loading of `gnus`, but still configuring relevant
>> parameters.
>>
>> I have found that all of the :custom statements are fine, except for
>>
>> :custom
>> (gnus-select-method '(nnnil ""))
>>
>> It seems this custom statement triggers loading of gnus. I found this
>> can be used by replacing this statement with
>>
>> :config
>> (setq gnus-select-method '(nnnil ""))
>>
>> However, it is less than satisfactory.
>
> Why is that?
>
> (use-package gnus
>   :init
>   (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
>
>   :config
>   (setq gnus-select-method '(nnnil ""))
>     (setq gnus-secondary-select-methods
>         '((nntp "news.gmane.io")
>   --snip--
>
> I don't have any issues with this configuration.
>
>>
>> Any clue about this?
>
>

-- 
Juan José García Ripoll
http://juanjose.garciaripoll.com
http://quinfog.hbar.es




reply via email to

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