summaryrefslogtreecommitdiffstats
path: root/lisp/init-package.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/init-package.el')
-rw-r--r--lisp/init-package.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/init-package.el b/lisp/init-package.el
index f868c0d..54e9575 100644
--- a/lisp/init-package.el
+++ b/lisp/init-package.el
@@ -4,8 +4,10 @@
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
-;; helper function to install a package if it doesn't exist
(defun require-package (package &optional min-version no-refresh)
+ "Install given PACKAGE, optionally requiring MIN-VERSION.
+If NO-REFRESH is non-nil, the available package lists will not be
+re-downloaded in order to locate PACKAGE."
(if (package-installed-p package min-version)
t
(if (or (assoc package package-archive-contents) no-refresh)