From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 04BD86DE01D0 for ; Sun, 25 Sep 2016 00:18:16 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.017 X-Spam-Level: X-Spam-Status: No, score=-0.017 tagged_above=-999 required=5 tests=[AWL=-0.147, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YB5oxxmuG4tY for ; Sun, 25 Sep 2016 00:18:15 -0700 (PDT) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id 11D0E6DE00D2 for ; Sun, 25 Sep 2016 00:18:15 -0700 (PDT) Received: by mail-wm0-f67.google.com with SMTP id 133so9141639wmq.2 for ; Sun, 25 Sep 2016 00:18:14 -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; bh=J10+APaIsu97abMQ5upds65W8JYvpnhAFgKhnIzmeZM=; b=ChMM/Znt49bn56fB0qTQrjAtwI/2++3UihYbI2D4SgIeXl8VO5/RPjE14nPXwLbjHS Arm0dU5MMp0zNzBR9aBx8nGSoW0BQGt/tlNBoJ/cgKfeniXRNu9E+hsBeacwREQyLI/Z pxDBxYiZFQuaiLGawqfi9OrVOz8rRwQOMq5XzPSxkPq1UOKv3vicNT4YoUscnKPs58SE eahfzJQGAZeCiJVaDBEYCWdUcnSTtHubXXrHHo6wG8XDBM6bwXwrf6GzXUbXUzgJlGjb kJ/tQZyEhRapIwYFzpiDoAA+wB4fWqydWQiUgizm7GvazC0Syzz7SH2kAAULYcoFDAI4 Ckdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=J10+APaIsu97abMQ5upds65W8JYvpnhAFgKhnIzmeZM=; b=OQUsCq7vVwz1anGWkxvTnLaz85INOmb+sG7HUPYaSOHkQQYs1vnjNKhOAcQYdR6hg6 oV283Fj/k5YAS9XEkb5xiDzhUQSVRntyR8+/+EyrYjG31mHsWqpYhwV86727/hOra1C9 8GI0CKBXJusEvVeKscz3CXLEnyhsJGyBMC87sXmRa9olACf6iKtlNOAoDl5RVzSFOs2c E/cD/WIgx5xAF83W2c/BQvY2yLuTk8r2Ss/EO1wXQb6MEjyw25ZzdB28RL+Sd+2EcVwO n9tXWDgFWsA6SQ295KCxtpAXZQzODawFihILFN4vV5/jxC/+12jBxQ6G2pxAvgk0GB/p 0XUw== X-Gm-Message-State: AA6/9RlGDowa7DO9/SBFhvuC5iRIV/gpyXUcCiqd7wx2p2PYFObVYhfFPkLasXmnLOmU0Q== X-Received: by 10.194.164.102 with SMTP id yp6mr13381834wjb.50.1474787893132; Sun, 25 Sep 2016 00:18:13 -0700 (PDT) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id n28sm4602841wmi.2.2016.09.25.00.18.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Sep 2016 00:18:12 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH] emacs: tree: make b bounce a message and backspace scroll message pane up Date: Sun, 25 Sep 2016 08:18:10 +0100 Message-Id: <1474787890-23280-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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, 25 Sep 2016 07:18:16 -0000 This tweaks the keybindings in tree-mode. It make b do bounce/resend matching show-mode. Since b was already bound to scroll message pane back, we now use backspace for that. This means space/backspace scroll the message pane forwards/backwards, and page-up/page-down scrolls the tree pane forwards/backwards. --- emacs/notmuch-tree.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 6e5797e..658c4f9 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -251,6 +251,7 @@ FUNC." (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) + (define-key map "b" 'notmuch-show-resend-message) ;; these apply to the message pane (define-key map (kbd "M-TAB") (notmuch-tree-to-message-pane #'notmuch-show-previous-button)) @@ -282,7 +283,7 @@ FUNC." (define-key map "+" 'notmuch-tree-add-tag) (define-key map "*" 'notmuch-tree-tag-thread) (define-key map " " 'notmuch-tree-scroll-or-next) - (define-key map "b" 'notmuch-tree-scroll-message-window-back) + (define-key map (kbd "DEL") 'notmuch-tree-scroll-message-window-back) map)) (fset 'notmuch-tree-mode-map notmuch-tree-mode-map) -- 2.1.4