summaryrefslogtreecommitdiffstats
path: root/lisp/init-package.el
diff options
context:
space:
mode:
authorMartin Polden <martin.polden@gmail.com>2014-05-17 17:58:21 +0200
committerMartin Polden <martin.polden@gmail.com>2014-05-17 18:03:36 +0200
commit2b9af9aa00d593508a5f84cbf1a41420a76f3a09 (patch)
tree539c8414ba613ce0b50c870bceb37e6ba120c242 /lisp/init-package.el
parentf2e2022c3d0856a29997f9cc13d18fc91d539d4d (diff)
Misc cleanup
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)