From: David Edmondson <dme@dme.org>
To: notmuch@notmuchmail.org
Subject: [PATCH] emacs: Allow headers to be shown by default in show mode
Date: Fri, 23 Apr 2010 12:54:21 +0100 [thread overview]
Message-ID: <1272023661-14038-1-git-send-email-dme@dme.org> (raw)
Add `notmuch-show-headers-visible' which, when set `t', causes headers
to be shown by default.
---
emacs/notmuch-show.el | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index cd859f0..3ea07c8 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -42,6 +42,11 @@
that if this order is changed the headers shown when a message is
collapsed will change.")
+(defcustom notmuch-show-headers-visible nil
+ "Should the headers be visible by default?"
+ :group 'notmuch
+ :type 'boolean)
+
(defvar notmuch-show-markup-headers-hook '(notmuch-show-colour-headers)
"A list of functions called to decorate the headers listed in
`notmuch-show-headers'.")
@@ -433,8 +438,8 @@ current buffer, if possible."
;; the content).
(notmuch-show-set-message-properties msg)
- ;; Headers are hidden by default.
- (notmuch-show-headers-visible msg nil)
+ ;; Set header visibility.
+ (notmuch-show-headers-visible msg notmuch-show-headers-visible)
;; Message visibility depends on whether it matched the search
;; criteria.
--
1.7.0
next reply other threads:[~2010-04-23 11:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 11:54 David Edmondson [this message]
2010-04-23 17:13 ` [PATCH] emacs: Allow headers to be shown by default in show mode Dirk Hohndel
2010-04-23 17:27 ` Jameson Rollins
2010-04-23 17:34 ` Servilio Afre Puentes
2010-04-23 19:26 ` Carl Worth
2010-04-23 19:40 ` Jameson Rollins
2010-04-23 20:08 ` David Edmondson
2010-04-24 12:42 ` Carl Worth
2010-04-24 13:21 ` Carl Worth
2010-04-26 10:55 ` David Edmondson
2010-04-26 16:28 ` Dirk Hohndel
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=1272023661-14038-1-git-send-email-dme@dme.org \
--to=dme@dme.org \
--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).