From: Mark Walters Date: Tue, 27 Sep 2016 09:26:56 +0000 (+0100) Subject: emacs: add mimetype completions to searches X-Git-Tag: 0.24_rc0~129 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=385413e0596b65bb759ec246ed03bc1bf7423cb0;ds=sidebyside emacs: add mimetype completions to searches --- diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 888672b5..6c36ad8a 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -892,9 +892,10 @@ PROMPT is the string to prompt with." (process-lines notmuch-command "search" "--output=tags" "*"))) (completions (append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:" - "subject:" "attachment:" "mimetype:") + "subject:" "attachment:") (mapcar (lambda (tag) (concat "tag:" tag)) all-tags) - (mapcar (lambda (tag) (concat "is:" tag)) all-tags)))) + (mapcar (lambda (tag) (concat "is:" tag)) all-tags) + (mapcar (lambda (mimetype) (concat "mimetype:" mimetype)) (mailcap-mime-types))))) (let ((keymap (copy-keymap minibuffer-local-map)) (current-query (case major-mode (notmuch-search-mode (notmuch-search-get-query))