3

I just started organizing my packages with use-package because I need the simple transition between few computers. I use few binary programs asynchronously, and been therefor searching for solution that lets me maintain them along Emacs packages.

It seems pretty easy with use-package, but I am constantly getting errors like:

Error (use-package): Cannot load ag

I tried to supply optional installation command as second argument to the keyword :ensure-system-package, still error is the same for my setup.

(use-package ag
  :ensure-system-package (ag . "wajig install ag")
  :config
  (use-package helm-ag-r :ensure t))

1 Answer 1

3

I think that all you're missing is :ensure t for ag itself:

(use-package ag
  :ensure t
  :ensure-system-package (ag . "wajig install ag")
  :config
  (use-package helm-ag-r :ensure t))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.