unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
To: "Björn Bidar" <bjorn.bidar@thaodan.de>, help-gnu-emacs@gnu.org
Subject: Re: Define use-package twice for some packages
Date: Wed, 27 Dec 2023 16:26:02 +0300	[thread overview]
Message-ID: <5d95a990-4db1-486b-9440-6249045ec286@gmail.com> (raw)
In-Reply-To: <6588d36e.0c0a0220.8776a.1723SMTPIN_ADDED_BROKEN@mx.google.com>

One way to do it is by using a function that you later redefine. First 
you define an empty version before your shared circe use-package form. 
You call it in your :config. Then you define a filled version in your 
private config file. The :config would call the redefined function. This 
should work for circe, but there are probably some packages where it 
won't work, because :config is called before your custom function is 
redefined.

Alternatively if your configuration is something simple like a few 
variable values, nothing forces you to fit it all into the use-package. 
Tools like use-package exist to make it simpler for you, not harder and 
0.005325 seconds of startup time may not be worth 4 hours of human 
thinking time.




       reply	other threads:[~2023-12-27 13:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6588d36e.0c0a0220.8776a.1723SMTPIN_ADDED_BROKEN@mx.google.com>
2023-12-27 13:26 ` Nikolay Kudryavtsev [this message]
2023-12-25  0:56 Define use-package twice for some packages Björn Bidar

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=5d95a990-4db1-486b-9440-6249045ec286@gmail.com \
    --to=nikolay.kudryavtsev@gmail.com \
    --cc=bjorn.bidar@thaodan.de \
    --cc=help-gnu-emacs@gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).