mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 00:01:33 -08:00
pure cleanup
This commit is contained in:
parent
18f04bfb99
commit
435d4b4078
1 changed files with 32 additions and 32 deletions
|
|
@ -113,10 +113,10 @@ Return nil when the queue is empty."
|
|||
(forms (gethash priority use-package-idle-forms))
|
||||
(first-form (car forms))
|
||||
(forms-remaining (cdr forms)))
|
||||
(if forms-remaining
|
||||
(puthash priority forms-remaining use-package-idle-forms)
|
||||
(remhash priority use-package-idle-forms))
|
||||
first-form))
|
||||
(if forms-remaining
|
||||
(puthash priority forms-remaining use-package-idle-forms)
|
||||
(remhash priority use-package-idle-forms))
|
||||
first-form))
|
||||
|
||||
(defun use-package-idle-eval()
|
||||
"Start to eval idle-commands from the idle queue."
|
||||
|
|
@ -152,28 +152,28 @@ Return nil when the queue is empty."
|
|||
|
||||
(defvar use-package-keywords
|
||||
'(
|
||||
:bind
|
||||
:bind*
|
||||
:commands
|
||||
:config
|
||||
:defer
|
||||
:defines
|
||||
:demand
|
||||
:diminish
|
||||
:disabled
|
||||
:ensure
|
||||
:idle
|
||||
:idle-priority
|
||||
:if
|
||||
:init
|
||||
:interpreter
|
||||
:load-path
|
||||
:mode
|
||||
:pin
|
||||
:pre-init
|
||||
:pre-load
|
||||
:requires
|
||||
)
|
||||
:bind
|
||||
:bind*
|
||||
:commands
|
||||
:config
|
||||
:defer
|
||||
:defines
|
||||
:demand
|
||||
:diminish
|
||||
:disabled
|
||||
:ensure
|
||||
:idle
|
||||
:idle-priority
|
||||
:if
|
||||
:init
|
||||
:interpreter
|
||||
:load-path
|
||||
:mode
|
||||
:pin
|
||||
:pre-init
|
||||
:pre-load
|
||||
:requires
|
||||
)
|
||||
"Keywords recognized by `use-package'.")
|
||||
|
||||
(defun use-package-mplist-get (plist prop)
|
||||
|
|
@ -239,11 +239,11 @@ are all non-keywords elements that follow it."
|
|||
"Error if any keyword given in ARGS is not recognized.
|
||||
Return the list of recognized keywords."
|
||||
(mapc
|
||||
(function
|
||||
(lambda (keyword)
|
||||
(unless (memq keyword use-package-keywords)
|
||||
(error "Unrecognized keyword: %s" keyword))))
|
||||
(use-package-mplist-keys args)))
|
||||
(function
|
||||
(lambda (keyword)
|
||||
(unless (memq keyword use-package-keywords)
|
||||
(error "Unrecognized keyword: %s" keyword))))
|
||||
(use-package-mplist-keys args)))
|
||||
|
||||
(defmacro use-package (name &rest args)
|
||||
"Use a package with configuration options.
|
||||
|
|
@ -391,7 +391,7 @@ For full documentation. please see commentary.
|
|||
(funcall init-for-commands
|
||||
#'(lambda (binding)
|
||||
`(bind-key* ,(car binding)
|
||||
(quote ,(cdr binding))))
|
||||
(quote ,(cdr binding))))
|
||||
overriding-keybindings-alist)
|
||||
|
||||
(funcall init-for-commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue