[PATCH] emacs: Sort saved searches
Jani Nikula
jani at nikula.org
Fri Sep 2 05:28:06 PDT 2011
Display saved searches sorted, like tags are displayed.
This only affects the display of the saved searches, not the order in which
they are stored in .emacs.
Signed-off-by: Jani Nikula <jani at nikula.org>
---
emacs/notmuch-hello.el | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 65fde75..13758e5 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -440,6 +440,9 @@ Complete list of currently available key bindings:
(widest (max saved-widest alltags-widest)))
(when saved-alist
+ ;; Sort saved searches.
+ (setq saved-alist
+ (sort saved-alist (lambda (a b) (string< (car a) (car b)))))
(widget-insert "\nSaved searches: ")
(widget-create 'push-button
:notify (lambda (&rest ignore)
--
1.7.1
More information about the notmuch
mailing list