[PATCH] Customize saved search order separately from regular search order
Keith Packard
keithp at keithp.com
Mon May 3 13:58:27 PDT 2010
I use 'saved searches' as a folder mechanism and want them to be shown
oldest first. Otherwise, while searching for messages normally, I want
to see the most recent messages first. This patch makes these two
default search orders separate.
Signed-off-by: Keith Packard <keithp at keithp.com>
---
emacs/notmuch-hello.el | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 6a1c56e..f44b1d3 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -37,6 +37,11 @@
:type 'integer
:group 'notmuch)
+(defcustom notmuch-saved-search-oldest-first t
+ "Whether saved searches should be oldest first."
+ :type 'boolean
+ :group 'notmuch)
+
(defcustom notmuch-show-empty-saved-searches nil
"Should saved searches with no messages be listed?"
:type 'boolean
@@ -140,7 +145,7 @@ diagonal."
(defun notmuch-hello-widget-search (widget &rest ignore)
(notmuch-search (widget-get widget
:notmuch-search-terms)
- notmuch-search-oldest-first
+ notmuch-saved-search-oldest-first
nil nil #'notmuch-hello-search-continuation))
(defun notmuch-saved-search-count (search)
--
1.7.0.4
More information about the notmuch
mailing list