Use-package: Can use-package load from git?

Created on 23 Nov 2016  路  5Comments  路  Source: jwiegley/use-package

Sorry to post support questions as issues but I did not see this addressed in the README.
Is there any way to have use-package load a package from a git release or compressed tar file, e.g. magit-2.8.0.tar.gz, the magit 2.8.0 release?

If not from git, will use-package detect when I have manually installed a package in my ~/.emacs.d directory and not load it again? Or does use-package only know when packages are loaded by the package manager?

Most helpful comment

quelpa-use-package is great, you can keep using use-package like normal, and then when you want to install from source you just add :quelpa t to the relevant use-package form. Or :quelpa (cool-package :fetcher github :repo ...).

All 5 comments

You have several options:

  • use https://github.com/quelpa/quelpa to install the package, that way use-package is used like for a normal package-install package
  • untar the package yourself and play with :load-path

@vyp: ooooh, shiny

I'm not far from switching to quelpa!

quelpa-use-package is great, you can keep using use-package like normal, and then when you want to install from source you just add :quelpa t to the relevant use-package form. Or :quelpa (cool-package :fetcher github :repo ...).

This is rather beyond the purview of use-package, but there are extensions that might allow it, as mentioned.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

endoffile78 picture endoffile78  路  11Comments

DamienCassou picture DamienCassou  路  8Comments

davep picture davep  路  6Comments

kpbochenek picture kpbochenek  路  8Comments

Vurp picture Vurp  路  6Comments