mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 22:41:06 -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
|
;;;###autoload
|
||||||
(defun use-package-handler/:chords (name keyword arg rest state)
|
(defun use-package-handler/:chords (name keyword arg rest state)
|
||||||
"Handler for `:chords' keyword in `use-package'."
|
"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-concat
|
||||||
(use-package-process-keywords name
|
(use-package-process-keywords name rest state)
|
||||||
(use-package-sort-keywords
|
|
||||||
(use-package-plist-maybe-put rest :defer t))
|
|
||||||
(use-package-plist-append state :commands commands))
|
|
||||||
`(,(macroexpand
|
`(,(macroexpand
|
||||||
`(bind-chords :package ,name ,@arg))))))
|
`(bind-chords :package ,name ,@arg)))))
|
||||||
(use-package-handler/:preface name keyword chord-binder rest state)))
|
|
||||||
|
|
||||||
(add-to-list 'use-package-keywords :chords t)
|
(add-to-list 'use-package-keywords :chords t)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue