Skip to content

[Bug/Support]:How to use elpaca with local packages not in a git repo? #481

@garyo

Description

@garyo

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

I have a single-file package gco-pkm.el in my ~/.config/emacs/lisp dir (which is in my load-path). I'd like to load that using use-package (which I have hooked up to elpaca with default :ensure t), but only after elpaca has built & loaded org and transient and other dependent packages. And another package gco-pkm-transient.el which I'd like loaded after the first one.

Can I just do

(use-package org
  :ensure t 
  ;; other stuff...)
(use-package transient :ensure t)

(use-package gco-pkm
  :ensure nil
  :load-path "lisp/"
  :after org
  :demand t  ; force loading when org is ready
)

(use-package gco-pkm-transient
  :ensure nil
  :load-path "lisp/"
  :after (gco-pkm org transient)
  :demand t

? I don't see those packages in the elpaca-log buffer, so I don't know if it really processed them as part of its dependency graph or if I'm just getting lucky. Is there an elpaca-approved way to do this?

Operating System

MacOS

Description

No response

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