A gentleman (or woman) by the name of baam_waak recently asked on
/r/emacs how can one make sure a package gets installed in case
requireing it fails. Sadly, this predicament has no perfect
solution, for you require features, not packages. Fortunately, it has
plenty of solutions that are good enough, since features commonly
share the name of their package.
Motivated by the question, I saw it fit to add this
functionality to paradox's arsenal.
Just use (paradox-require 'dash) instead of (require 'dash) and
the package will be installed if necessary.
Require Feature or Install Package
03 Jul 2014, by Artur Malabarba.A gentleman (or woman) by the name of baam_waak recently asked on /r/emacs how can one make sure a package gets installed in case
require
ing it fails. Sadly, this predicament has no perfect solution, for you require features, not packages. Fortunately, it has plenty of solutions that are good enough, since features commonly share the name of their package.Motivated by the question, I saw it fit to add this functionality to paradox's arsenal.
Just use
(paradox-require 'dash)
instead of(require 'dash)
and the package will be installed if necessary.Tags: lisp, paradox, package, elpa, emacs,
Ispell and Abbrev, the Perfect Auto-Correct »
« Ido Bury Buffer
Related Posts
It’s Magit! And you’re the magician! in package
validate.el: Schema validation for Emacs-Lisp in package
Eval-result-overlays in Emacs-lisp in lisp
Content © 2019, All rights reserved. Icons under CC3.0.