X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-jump.el;h=5ec8eb9c8e3e06839a6e653ef554c50429b34e77;hb=3df2281746d57abbb45790ecb432ef40533c30bc;hp=51bc4e31f8b78c2918625de2710d41bb8075e174;hpb=0067a43ea2ee554eafed1e1300a71259cd6b6a6d;p=notmuch diff --git a/emacs/notmuch-jump.el b/emacs/notmuch-jump.el index 51bc4e31..5ec8eb9c 100644 --- a/emacs/notmuch-jump.el +++ b/emacs/notmuch-jump.el @@ -22,10 +22,6 @@ ;;; Code: -(eval-when-compile - (require 'cl-lib) - (require 'pcase)) - (require 'notmuch-lib) (require 'notmuch-hello) @@ -63,8 +59,13 @@ fast way to jump to a saved search from anywhere in Notmuch." (setq action-map (nreverse action-map)) (if action-map (notmuch-jump action-map "Search: ") - (error "To use notmuch-jump, \ -please customize shortcut keys in notmuch-saved-searches.")))) + (error "To use notmuch-jump, %s" + "please customize shortcut keys in notmuch-saved-searches.")))) + +(defface notmuch-jump-key + '((t :inherit minibuffer-prompt)) + "Default face used for keys in `notmuch-jump' and related." + :group 'notmuch-faces) (defvar notmuch-jump--action nil) @@ -127,7 +128,7 @@ buffer." ;; Format each action (mapcar (pcase-lambda (`(,key ,desc)) (setq key (format-kbd-macro key)) - (concat (propertize key 'face 'minibuffer-prompt) + (concat (propertize key 'face 'notmuch-jump-key) (make-string (- key-width (length key)) ? ) " " desc)) action-map)))