From: Austin Clements <amdragon@MIT.EDU>
To: notmuch@notmuchmail.org
Subject: [PATCH v3 2/2] emacs: Expand default saved searches and add shortcut keys
Date: Mon, 4 Aug 2014 21:45:21 -0400 [thread overview]
Message-ID: <1407203121-17640-2-git-send-email-amdragon@mit.edu> (raw)
In-Reply-To: <1407203121-17640-1-git-send-email-amdragon@mit.edu>
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 | 9 +++++++--
test/emacs.expected-output/notmuch-hello | 2 +-
test/emacs.expected-output/notmuch-hello-long-names | 2 +-
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 061b27d..65d0627 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -93,8 +93,13 @@ (define-widget 'notmuch-saved-search-plist 'list
(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
diff --git a/test/emacs.expected-output/notmuch-hello b/test/emacs.expected-output/notmuch-hello
index 2d69891..9ba4cfc 100644
--- a/test/emacs.expected-output/notmuch-hello
+++ b/test/emacs.expected-output/notmuch-hello
@@ -2,7 +2,7 @@
Saved searches: [edit]
- 52 inbox 52 unread
+ 52 inbox 52 unread 52 all mail
Search: .
diff --git a/test/emacs.expected-output/notmuch-hello-long-names b/test/emacs.expected-output/notmuch-hello-long-names
index 486d0d9..1c8d6eb 100644
--- a/test/emacs.expected-output/notmuch-hello-long-names
+++ b/test/emacs.expected-output/notmuch-hello-long-names
@@ -2,7 +2,7 @@
Saved searches: [edit]
- 52 inbox 52 unread
+ 52 inbox 52 unread 52 all mail
Search: .
--
2.0.0
next prev parent reply other threads:[~2014-08-05 1:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 16:02 [PATCH 0/2] emacs: Shortcut keys to saved searches Austin Clements
2014-07-14 16:02 ` [PATCH 1/2] emacs: Introduce notmuch-jump: shortcut " Austin Clements
2014-07-14 21:22 ` Mark Walters
2014-07-15 3:46 ` Austin Clements
2014-07-15 7:02 ` Mark Walters
2014-07-14 16:02 ` [PATCH 2/2] emacs: Expand default saved searches and add shortcut keys Austin Clements
2014-07-15 14:06 ` [PATCH v2 0/2] emacs: Shortcut keys to saved searches Austin Clements
2014-07-15 14:06 ` [PATCH v2 1/2] emacs: Introduce notmuch-jump: shortcut " Austin Clements
2014-08-04 23:00 ` David Bremner
2014-08-05 1:44 ` Austin Clements
2014-08-05 1:45 ` [PATCH v3 " Austin Clements
2014-08-05 1:45 ` Austin Clements [this message]
2014-08-05 11:20 ` David Bremner
2014-07-15 14:06 ` [PATCH v2 2/2] emacs: Expand default saved searches and add shortcut keys Austin Clements
2014-07-15 22:06 ` David Bremner
2014-07-15 20:18 ` [PATCH v2 0/2] emacs: Shortcut keys to saved searches Mark Walters
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407203121-17640-2-git-send-email-amdragon@mit.edu \
--to=amdragon@mit.edu \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).