summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r--lisp/use-package/use-package.el10
1 files changed, 2 insertions, 8 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index 4c1433d66d9..5f911e3b718 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -633,19 +633,13 @@ manually updated package."
(defun use-package-handler/:bind
(name-symbol keyword arg rest state &optional override)
- (let* (commands
- (form (mapcar
- #'(lambda (binding)
- (push (cdr binding) commands)
- `(,(if override
- 'bind-key*
- 'bind-key) ,(car binding) #',(cdr binding))) arg)))
+ (let ((commands (mapcar #'cdr arg)))
(use-package-concat
(use-package-process-keywords name-symbol
(use-package-sort-keywords
(use-package-plist-maybe-put rest :defer t))
(use-package-plist-append state :commands commands))
- `((ignore ,@form)))))
+ `((ignore (,(if override 'bind-keys* 'bind-keys) ,@arg))))))
(defun use-package-handler/:bind* (name-symbol keyword arg rest state)
(use-package-handler/:bind name-symbol keyword arg rest state t))