mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-06 04:09:37 +00:00
Reverting "Documentation for the use-package macro."
Revert "Documentation for the use-package macro."
This reverts commit abc0ebc92d
.
This commit is contained in:
parent
abc0ebc92d
commit
b8406ce9f0
1 changed files with 2 additions and 29 deletions
|
@ -321,28 +321,6 @@
|
||||||
|
|
||||||
|
|
||||||
(defmacro use-package (name &rest args)
|
(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))
|
(let* ((commands (plist-get args :commands))
|
||||||
(pre-init-body (plist-get args :pre-init))
|
(pre-init-body (plist-get args :pre-init))
|
||||||
(init-body (plist-get args :init))
|
(init-body (plist-get args :init))
|
||||||
|
@ -372,13 +350,8 @@ For full documentation. please see commentary.
|
||||||
(unless (plist-get args :disabled)
|
(unless (plist-get args :disabled)
|
||||||
|
|
||||||
;; force this immediately -- one off cost!
|
;; force this immediately -- one off cost!
|
||||||
(let* ((ensure (plist-get args :ensure))
|
(if (plist-get args :ensure)
|
||||||
(package-name
|
(use-package-ensure-elpa name))
|
||||||
(or (and (eq ensure t)
|
|
||||||
name)
|
|
||||||
ensure)))
|
|
||||||
(when package-name
|
|
||||||
(use-package-ensure-elpa package-name)))
|
|
||||||
|
|
||||||
(if diminish-var
|
(if diminish-var
|
||||||
(setq config-body
|
(setq config-body
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue