contrib: pick: Do not indent messages in the message pane

Currently pick just uses notmuch-show to display messages in the
message pane: this means that they get indented just as show
would. However, since pick is only displaying one message at a time
there is no need to indent so override the indentation.
This commit is contained in:
Mark Walters 2012-12-09 20:30:19 +00:00 committed by David Bremner
parent 732f50a20a
commit 480f44fbe4

View file

@ -337,8 +337,10 @@ Does NOT change the database."
(setq notmuch-pick-message-window
(split-window-vertically (/ (window-height) 4)))
(with-selected-window notmuch-pick-message-window
(setq current-prefix-arg '(4))
(setq buffer (notmuch-show id nil nil nil)))
;; Since we are only displaying one message do not indent.
(let ((notmuch-show-indent-messages-width 0))
(setq current-prefix-arg '(4))
(setq buffer (notmuch-show id nil nil nil))))
(notmuch-pick-tag-update-display (list "-unread"))
(setq notmuch-pick-message-buffer buffer))))