diff options
author | Phillip Lord <phillip.lord@russet.org.uk> | 2013-01-17 21:57:39 +0000 |
---|---|---|
committer | Phillip Lord <phillip.lord@russet.org.uk> | 2013-01-17 21:57:39 +0000 |
commit | 8d72a6c1d68caf95e94d72f5d465e7ea33050e77 (patch) | |
tree | 023e28ba31e2a785ac34083c92f548cbc4231a62 | |
parent | b8406ce9f00e792ae3a93abddf4d17b678410e88 (diff) | |
download | emacs-8d72a6c1d6.tar.gz |
Documentation for the use-package macro
-rw-r--r-- | lisp/use-package/use-package.el | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 3dce341e9da..63223a3a26a 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -321,6 +321,28 @@ (defmacro use-package (name &rest args) +"Use a package with configuration options. + +For full documentation. please see commentary. + + (use-package package-name + :keyword option) + +:init Code to run when `use-package' form evals. +:bind Perform key bindings, and define autoload for bound + commands. +:commands Define autoloads for given commands. +:mode Form to be added to `auto-mode-alist'. +:interpreter Form to be added to `auto-interpreter-alist'. +:defer Defer loading of package -- automatic + if :commands, :bind, :mode or :interpreter are used. +:config Runs if and when package loads. +:if Conditional loading. +:disabled Ignore everything. +:defines Define vars to silence byte-compiler. +:load-path Add to `load-path' before loading. +:diminish Support for diminish package (if it's installed). +" (let* ((commands (plist-get args :commands)) (pre-init-body (plist-get args :pre-init)) (init-body (plist-get args :init)) |