slotThe/vc-use-package

Feature request: :files

Closed this issue · 3 comments

Hi! Thanks for putting this together!

I couldn't figure out how to install dirvish from git using this package.

I noticed that the melpa recipe looks like this:

(dirvish :fetcher github :repo "alexluigit/dirvish"
         :files (:defaults "extensions/*.el" ))

vc-use-package doesn't appear to support :files, so I had to resort to using straight.el, which does do this out of the box. Perhaps :files support could be a worthwhile addition to provide compatibility with more packages?

Thanks again!

Hi,

you should be able to do this by directly using the package-vc.el interface:

(use-package dirvish
  :vc (dirvish :url "https://github.com/alexluigit/dirvish"
               :lisp-dir "extensions/"))

Bringing any file within the extension directory into scope should then work as normal with e.g. (require 'dirvish-ls).

Oh, excellent, thank you! I'll give this a shot.

That did the trick -- thanks again!