From 7161c09b30dcf4dd5dad7eacea9652c5f34fe07a Mon Sep 17 00:00:00 2001 From: Phillip Lord Date: Wed, 26 Jun 2013 10:28:35 +0100 Subject: [PATCH 1/2] Documentation added for :ensure keyword --- lisp/use-package/use-package.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 4778c399dea..c16f2ee2748 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -238,6 +238,17 @@ ;; actual load. In this case, everything could be put inside `:init' and ;; there would be no difference. ;; +;; * For package.el user +;; +;; You can use `use-package' to load packages from ELPA with package.el. This +;; is particularly useful if you share your .emacs between several machines; +;; the relevant packages will download automatically once placed in your +;; .emacs. The `:ensure' key will install the package automatically if it is +;; not already present. +;; +;; (use-package tex-site +;; :ensure auctex) +;; ;; * For el-get users ;; ;; You can use `use-package' as a way to create source definitions for el-get. From 01cfa0358f2d51e50b0def40c667ea4fcd81c130 Mon Sep 17 00:00:00 2001 From: Phillip Lord Date: Wed, 26 Jun 2013 12:12:25 +0100 Subject: [PATCH 2/2] Added documentation to use-package macro --- lisp/use-package/use-package.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index c16f2ee2748..5b5d0995913 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -422,7 +422,8 @@ For full documentation. please see commentary. :defines Define vars to silence byte-compiler. :load-path Add to `load-path' before loading. :diminish Support for diminish package (if it's installed). -:idle adds a form to run on an idle timer" +:idle adds a form to run on an idle timer +:ensure loads package using package.el if necessary." (let* ((commands (plist-get args :commands)) (pre-init-body (plist-get args :pre-init)) (init-body (plist-get args :init))