Skip to content
Discussion options

You must be logged in to vote

There's no direct way to do this with use-package. You can instead just separate out the straight.el invocation, to:

(if guix-p
    (straight-register-package 'no-littering)
  (straight-use-package 'no-littering))
  
(use-package no-littering
  :demand t
  :config
  (no-littering-theme-backups))

If you want, you could write a macro wrapping use-package that would implement this behavior by default, and use it in your configuration.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jthaman
Comment options

Answer selected by jthaman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1268 on October 18, 2025 16:16.