jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.37k stars 260 forks source link

Is it possible to load a package from a git repository? #1037

Closed matt-y closed 1 year ago

matt-y commented 1 year ago

Sorry about the question-as-issue - but I am wondering if it is possible via use-package to load an elisp package located from a remote git repository, and the recommended way to do such a thing.

There is an .el file in a remote "contrib" repository of a project that I do not own which I'd like to download and then load. I could clone the repository, then add that cloned location to my "load-path" however I am wondering if use-package can do this in a single step for me.

Thank you

matt-y commented 1 year ago

Seems I can do this using the :straight directive.