summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ea97496)
This allows for entering a query string interactively.
mode-name "notmuch-search")
(setq buffer-read-only t))
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)
(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"))