mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Update use-package-chords.el
This commit is contained in:
parent
c9f6cae603
commit
dc83e2f035
1 changed files with 4 additions and 13 deletions
|
|
@ -32,19 +32,10 @@
|
|||
;;;###autoload
|
||||
(defun use-package-handler/:chords (name keyword arg rest state)
|
||||
"Handler for `:chords' keyword in `use-package'."
|
||||
(let* ((commands (remq nil (mapcar #'(lambda (arg)
|
||||
(if (listp arg)
|
||||
(cdr arg)
|
||||
nil)) arg)))
|
||||
(chord-binder
|
||||
(use-package-concat
|
||||
(use-package-process-keywords name
|
||||
(use-package-sort-keywords
|
||||
(use-package-plist-maybe-put rest :defer t))
|
||||
(use-package-plist-append state :commands commands))
|
||||
`(,(macroexpand
|
||||
`(bind-chords :package ,name ,@arg))))))
|
||||
(use-package-handler/:preface name keyword chord-binder rest state)))
|
||||
(use-package-concat
|
||||
(use-package-process-keywords name rest state)
|
||||
`(,(macroexpand
|
||||
`(bind-chords :package ,name ,@arg)))))
|
||||
|
||||
(add-to-list 'use-package-keywords :chords t)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue