Skip to content

[Support]: using use-package integration to define a custom recipe for use-package itself? #358

@benthamite

Description

@benthamite

Confirmation

  • I have checked the documentation (README, Wiki, docstrings, etc)
  • I am checking these without reading them.
  • I have searched previous issues to see if my question is a duplicate.

Elpaca Version

Elpaca ac6f563 grafted, HEAD -> master, origin/master, origin/HEAD
installer: 0.7
emacs-version: GNU Emacs 30.0.90 (build 1, aarch64-apple-darwin23.4.0, NS appkit-2487.50 Version 14.4.1 (Build 23E224))
of 2024-08-23
git --version: git version 2.46.0

Operating System

macOS Sonoma 14.6.1

Description

I would like to load a fork of use-package that provides support for multiple keymaps, and am trying to figure out how to do so with Elpaca.

In general, this can be done straightforwardly by adding

(elpaca elpaca-use-package
  (elpaca-use-package-mode))

followed by (use-package <package name> :ensure <package recipe>), e.g.

(use-package forge
  :ensure (forge
           :host github
           :repo "magit/forge"
           :branch "main")

However, in the special case of defining a custom recipe for use-package itself,

(use-package use-package
  :ensure (use-package
	    :host github
	    :repo "fishyfriend/use-package"
	    :branch "maps3"
	    :wait t))

this approach triggers a warning:

⛔ Warning (emacs): use-package loaded before Elpaca activation

presumably because elpaca-use-package-mode loads the default version of use-package before the custom recipe tries to load the fork.

Is there a proper way to handle this special case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions