Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deferred package fetching #1040

Open
dabrahams opened this issue Mar 11, 2023 · 3 comments
Open

Deferred package fetching #1040

dabrahams opened this issue Mar 11, 2023 · 3 comments

Comments

@dabrahams
Copy link
Contributor

When I arrive on a new machine and fire up emacs to, say, edit an Org file—or after I've made quite a few configuration updates—I don't want to have to wait for myriad packages to install.

What I'd like, for many packages, is to say :ensure, but do it async. https://github.com/conao3/feather.el could be useful for the async part, but with use-package, there seems to be no way to get the :config clause to be done as an eval-after-load.

@skangas
Copy link
Collaborator

skangas commented Aug 5, 2023

I think this would be a useful feature. Patches welcome.

@dabrahams
Copy link
Contributor Author

Now that I look, I wonder if this is the semantics provided by :defer 0?

@skangas
Copy link
Collaborator

skangas commented Aug 6, 2023

Now that I look, I wonder if this is the semantics provided by :defer 0?

I don't think so, not unless I misunderstood your original feature request. On my machine, this is what (use-package foo :defer 0) expands to:

(progn
  (use-package-ensure-elpa 'foo '(t) 'nil)
  (run-with-idle-timer 0 nil (function require) 'foo nil t))

In other words, the package is still installed immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants