summaryrefslogtreecommitdiff
path: root/lisp/use-package
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/use-package')
-rw-r--r--lisp/use-package/bind-key.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/use-package/bind-key.el b/lisp/use-package/bind-key.el
index bd8aa626cba..d2a21f3986b 100644
--- a/lisp/use-package/bind-key.el
+++ b/lisp/use-package/bind-key.el
@@ -189,11 +189,9 @@ function symbol (unquoted)."
,@(when doc `((put ',prefix-map 'variable-documentation ,doc)))
(define-prefix-command ',prefix-map)
(bind-key ,prefix ',prefix-map ,map)))
- ,@(mapcar (lambda (form) `(bind-key ,(if prefix
- (concat prefix " " (car form))
- (car form))
- ',(cdr form)
- ,map))
+ ,@(mapcar (lambda (form)
+ `(bind-key ,(car form) ',(cdr form)
+ ,(or prefix-map map)))
key-bindings))))
(defun get-binding-description (elem)