aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar David Edmondson <dme@dme.org>2012-02-08 08:02:18 +0000
committerGravatar David Bremner <bremner@debian.org>2012-02-12 11:58:21 -0500
commit866ce8b132c4b1e912f21a8b054f839f53281dde (patch)
tree84bf13c0bed01f84a2bc99fc356cbe1a5a462e67 /emacs
parentd2684228847715d7616ef39a2744e84989fb05bd (diff)
emacs: Add `notmuch-show-only-matching-messages'.
Allow the user to choose that only matching messages are shown by default.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 0b023a5c..7ffa1ed1 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -126,6 +126,11 @@ indentation."
(const :tag "View interactively"
notmuch-show-interactively-view-part)))
+(defcustom notmuch-show-only-matching-messages nil
+ "Only matching messages are shown by default."
+ :type 'boolean
+ :group 'notmuch-show)
+
(defvar notmuch-show-thread-id nil)
(make-variable-buffer-local 'notmuch-show-thread-id)
(put 'notmuch-show-thread-id 'permanent-local t)
@@ -1032,6 +1037,9 @@ function is used."
;; Set the default value for `notmuch-show-process-crypto' in this
;; buffer.
(setq notmuch-show-process-crypto notmuch-crypto-process-mime)
+ ;; Set the default value for
+ ;; `notmuch-show-elide-non-matching-messages' in this buffer.
+ (setq notmuch-show-elide-non-matching-messages notmuch-show-only-matching-messages)
(setq notmuch-show-thread-id thread-id
notmuch-show-parent-buffer parent-buffer