summaryrefslogtreecommitdiff
path: root/lisp/use-package/bind-key.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/use-package/bind-key.el')
-rw-r--r--lisp/use-package/bind-key.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/use-package/bind-key.el b/lisp/use-package/bind-key.el
index 87a33e3d6ca..643094daa7f 100644
--- a/lisp/use-package/bind-key.el
+++ b/lisp/use-package/bind-key.el
@@ -326,6 +326,10 @@ function symbol (unquoted)."
(and prefix (not prefix-map)))
(error "Both :prefix-map and :prefix must be supplied"))
+ (when repeat-type
+ (unless repeat-map
+ (error ":continue and :exit require specifying :repeat-map")))
+
(when (and menu-name (not prefix))
(error "If :menu-name is supplied, :prefix must be too"))