Hi, Xavier Maillard <[EMAIL PROTECTED]> writes: > Hi, > > Use (require-or-install 'my-package) to install my-package.el from > EmacsWiki if require fails. > > This is a nice thing. But what I really need (and I am willing to > code it asap) is a batch installer -i.e. something that can be > called from a cron job or a Makefile.
You can use require-or-install in a batch mode using : (require 'require-or-install) (setq install-elisp-repository-directory "~/.emacs.d/auto/") (add-path install-elisp-repository-directory) (unless (file-directory-p install-elisp-repository-directory) (make-directory install-elisp-repository-directory)) (setq require-or-install-confirm-flag nil) (setq install-elisp-confirm-flag nil) But you'll have to trust the EmacsWiki or the others urls. > Another question, this time on your code. Why do not you > "overload" the standard `require' function ? I mean, you could > unbind `require' and install your own `require'-revisited > function ? > > Xavier With no parameters require-or-install will try to get the library from EmacsWiki. You do not want to do this every times a require fails. Olivier _______________________________________________ gnu-emacs-sources mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
