1
Fork 0
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:
Russell Black 2018-03-23 22:04:48 -06:00 committed by GitHub
parent c9f6cae603
commit dc83e2f035

View file

@ -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)