]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
emacs: Expand default saved searches and add shortcut keys
authorAustin Clements <amdragon@MIT.EDU>
Tue, 5 Aug 2014 01:45:21 +0000 (21:45 -0400)
committerDavid Bremner <david@tethera.net>
Tue, 5 Aug 2014 11:07:52 +0000 (08:07 -0300)
This should help new users off to a better start with the addition of
more sensible saved searches and default shortcut keys.  Most existing
users have probably customized this variable and won't be affected.

emacs/notmuch-hello.el
test/emacs.expected-output/notmuch-hello
test/emacs.expected-output/notmuch-hello-long-names

index 061b27d09ec116d0a9e530bfd08e793a0824e0d3..65d062760a71a5f00a940ec945886a87be73c388 100644 (file)
@@ -93,8 +93,13 @@ searches so they still work in customize."
                                    (const :tag "Oldest-first" oldest-first)
                                    (const :tag "Newest-first" newest-first))))))
 
-(defcustom notmuch-saved-searches '((:name "inbox" :query "tag:inbox")
-                                   (:name "unread" :query "tag:unread"))
+(defcustom notmuch-saved-searches
+  `((:name "inbox" :query "tag:inbox" :key ,(kbd "i"))
+    (:name "unread" :query "tag:unread" :key ,(kbd "u"))
+    (:name "flagged" :query "tag:flagged" :key ,(kbd "f"))
+    (:name "sent" :query "tag:sent" :key ,(kbd "t"))
+    (:name "drafts" :query "tag:draft" :key ,(kbd "d"))
+    (:name "all mail" :query "*" :key ,(kbd "a")))
   "A list of saved searches to display.
 
 The saved search can be given in 3 forms. The preferred way is as
index 2d698917ed992737707f7aa6618615b816f17881..9ba4cfc1d560e4c33db3b296924ddb8e834f81cb 100644 (file)
@@ -2,7 +2,7 @@
 
 Saved searches: [edit]
 
-         52 inbox           52 unread
+         52 inbox           52 unread          52 all mail
 
 Search:                                                                     .
 
index 486d0d9ae0c8cf2e69de64f8c495c79c5e974054..1c8d6eb624b97237ad458d5ed61cadc666521dcf 100644 (file)
@@ -2,7 +2,7 @@
 
 Saved searches: [edit]
 
-         52 inbox           52 unread
+         52 inbox           52 unread          52 all mail
 
 Search:                                                                     .