mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
notmuch.el: Add notmuch-search command as well as notmuch
This allows for entering a query string interactively.
This commit is contained in:
parent
ea97496081
commit
7e8ba9adf8
1 changed files with 6 additions and 1 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue