Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2AD77431FD0 for ; Sun, 18 Aug 2013 05:15:24 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.201 X-Spam-Level: X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5XC4o9uDLzr6 for ; Sun, 18 Aug 2013 05:15:18 -0700 (PDT) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 7AB2D431FDB for ; Sun, 18 Aug 2013 05:14:57 -0700 (PDT) Received: by mail-wi0-f175.google.com with SMTP id hq12so2199565wib.14 for ; Sun, 18 Aug 2013 05:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2hglqx8g9C5RCXL8MdzWx3r9OCHzTk735D0fwvITpX0=; b=FYlEYA6PZd+jABlT7UxtJciwU+eqHWVUKhbEd2ZZs4Ai1fwDRmKx33HXkZRERW/hVx gDAa5J8fwEQDi+qQwH7zJjd4Qwo0MxIa9RJv+a5h/8XipHAvb/bXBf/7lFSTws86pkgo zKzCkvANROlqc/HEYYlYRyTttT/Nrszk3UXk9pBv7rXCZSyRDhys+PRYiLkUMoqouhmx Rxlup0SttnFQcP/RQEZqBvoB0tSpjcisgX233S8TNiOs/jPhkSP9RIKnbzzN44FpnS+E Unp923NNMnlhvhsoygsHq1/2DnEJ2WU7MVemzqKF0qAnlPHFkmor5kVd15fELMxxlORW 5hug== X-Received: by 10.180.211.111 with SMTP id nb15mr4433293wic.55.1376828096367; Sun, 18 Aug 2013 05:14:56 -0700 (PDT) Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) by mx.google.com with ESMTPSA id bt8sm9055250wib.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 18 Aug 2013 05:14:55 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH v2 07/11] contrib: pick: pass tab through to the message pane Date: Sun, 18 Aug 2013 13:14:35 +0100 Message-Id: <1376828079-21455-8-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1376828079-21455-1-git-send-email-markwalters1009@gmail.com> References: <1376828079-21455-1-git-send-email-markwalters1009@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Aug 2013 12:15:24 -0000 This makes tab move to next button in the message pane and binds button activate (in message pane) to "e". This means that is easy to toggle hidden parts or hidden citations etc in the message pane. --- contrib/notmuch-pick/notmuch-pick.el | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el index 2abb08b..bd506ca 100644 --- a/contrib/notmuch-pick/notmuch-pick.el +++ b/contrib/notmuch-pick/notmuch-pick.el @@ -216,6 +216,14 @@ This function does not give an error if there is no button." (define-key map "w" 'notmuch-show-save-attachments) (define-key map "v" 'notmuch-show-view-all-mime-parts) (define-key map "c" 'notmuch-show-stash-map) + + ;; these apply to the message pane + (define-key map (kbd "M-TAB") (notmuch-pick-to-message-pane #'notmuch-show-previous-button)) + (define-key map (kbd "") (notmuch-pick-to-message-pane #'notmuch-show-previous-button)) + (define-key map (kbd "TAB") (notmuch-pick-to-message-pane #'notmuch-show-next-button)) + (define-key map "e" (notmuch-pick-to-message-pane #'notmuch-pick-button-activate)) + + ;; The main pick bindings (define-key map "q" 'notmuch-pick-quit) (define-key map "x" 'notmuch-pick-quit) (define-key map "?" 'notmuch-help) -- 1.7.9.1