From: Carl Worth Date: Sat, 31 Oct 2009 00:18:19 +0000 (-0700) Subject: notmuch.el: Add notmuch-search command as well as notmuch X-Git-Tag: 0.1~646 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e8ba9adf8198acf46f36913853c1af332467afe;p=notmuch.git notmuch.el: Add notmuch-search command as well as notmuch This allows for entering a query string interactively. --- diff --git a/notmuch.el b/notmuch.el index 3e4a3082..84152fbc 100644 --- a/notmuch.el +++ b/notmuch.el @@ -40,8 +40,13 @@ mode-name "notmuch-search") (setq buffer-read-only t)) +(defun notmuch-search (query) + "Run \"notmuch search\" with the given query string and display results." + (interactive "sNotmuch search:") + (compilation-start (concat "notmuch search " query) 'notmuch-search-mode)) + (defun notmuch () "Run notmuch to display all mail with tag of 'inbox'" (interactive) (require 'compile) - (compilation-start "notmuch search tag:inbox" 'notmuch-search-mode)) + (notmuch-search "tag:inbox"))