]> git.eshelyaron.com Git - emacs.git/commitdiff
Support ":package" in use-package
authorMatthew Justin Bauer <mjbauer95@gmail.com>
Sun, 25 Feb 2018 21:03:43 +0000 (15:03 -0600)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2018 21:03:43 +0000 (15:03 -0600)
bind-key supports the keyword ":package" but use-package does not know that. Adding this should be helpful. In the future, maybe we could automatically fill in with the use-package package, but that could be a breaking change.

lisp/use-package/use-package-bind-key.el

index d8fe56dfaa5e07537ad8370f92adf8306dc00233..d17ecb2cf75cfa868df642982793411d610058be 100644 (file)
@@ -87,12 +87,14 @@ deferred until the prefix key sequence is pressed."
          ;;   :prefix STRING
          ;;   :filter SEXP
          ;;   :menu-name STRING
+         ;;   :package SYMBOL
          ((or (and (eq x :map) (symbolp (cadr arg)))
               (and (eq x :prefix) (stringp (cadr arg)))
               (and (eq x :prefix-map) (symbolp (cadr arg)))
               (and (eq x :prefix-docstring) (stringp (cadr arg)))
               (eq x :filter)
-              (and (eq x :menu-name) (stringp (cadr arg))))
+              (and (eq x :menu-name) (stringp (cadr arg)))
+              (and (eq x :package) (symbolp (cadr arg))))
           (setq args* (nconc args* (list x (cadr arg))))
           (setq arg (cddr arg)))
          ((listp x)