Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Bartosz Kaczyński" <bkaczynski@posteo.net>
To: "Juan José García-Ripoll" <juanjose.garciaripoll@gmail.com>
Cc: info-gnus-english@gnu.org
Subject: Re: use-package :custom causes gnus to load
Date: Sat, 28 Oct 2023 11:37:29 +0000	[thread overview]
Message-ID: <87a5s3ugee.fsf@posteo.net> (raw)
In-Reply-To: <86cywzhy38.fsf@csic.es> ("Juan =?utf-8?Q?Jos=C3=A9_Garc?= =?utf-8?Q?=C3=ADa-Ripoll=22's?= message of "Sat, 28 Oct 2023 11:53:47 +0200")

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?


  reply	other threads:[~2023-10-28 11:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-28  9:53 Juan José García-Ripoll
2023-10-28 11:37 ` Bartosz Kaczyński [this message]
2023-10-28 13:39   ` Björn Bidar
2023-10-28 14:40   ` Juan José García-Ripoll
2023-10-28 15:33     ` Björn Bidar
2023-10-28 15:38     ` Bartosz Kaczyński

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5s3ugee.fsf@posteo.net \
    --to=bkaczynski@posteo.net \
    --cc=info-gnus-english@gnu.org \
    --cc=juanjose.garciaripoll@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).