]> git.eshelyaron.com Git - emacs.git/commitdiff
Add a bind-key test
authorJohn Wiegley <johnw@newartisans.com>
Mon, 4 Dec 2017 23:43:10 +0000 (15:43 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Mon, 4 Dec 2017 23:43:10 +0000 (15:43 -0800)
test/lisp/use-package/use-package-tests.el

index 51a57edb7d22c6a160fefa608ce77bd606217e48..76e0be5105b970d7b2f894983ac48b026edc93da 100644 (file)
       (ignore
        (bind-keys :package mu4e ("<f9>" . mu4e))))))
 
+(ert-deftest bind-key/:prefix-map ()
+  (match-expansion
+   (bind-keys :prefix "<f1>"
+              :prefix-map my/map)
+   `(progn
+      (defvar my/map)
+      (define-prefix-command 'my/map)
+      (bind-key "<f1>" 'my/map nil nil))))
+
 ;; Local Variables:
 ;; indent-tabs-mode: nil
 ;; no-byte-compile: t