Skip to content

Commit

Permalink
Add function package-requires to elisp build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
caiorss committed Oct 2, 2016
1 parent 5922488 commit e565fef
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@

(package-initialize)


(defun packages-require (&rest packs)
"Install and load a package. If the package is not available
installs it automaticaly.
"
(mapc (lambda (package)
(unless (package-installed-p package)
(package-install package)
;;#'package-require
))

packs

))


(packages-require 'htmlize)

(require 'org)
(require 'htmlize)
(require 'ox-publish)
Expand Down

0 comments on commit e565fef

Please sign in to comment.