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 8ED956DE109F for ; Sun, 17 Nov 2019 14:30:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.351 X-Spam-Level: X-Spam-Status: No, score=-0.351 tagged_above=-999 required=5 tests=[AWL=-0.151, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] 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 7Wzfm206Y5pK for ; Sun, 17 Nov 2019 14:30:03 -0800 (PST) Received: from jb55.com (jb55.com [45.79.91.128]) by arlo.cworth.org (Postfix) with ESMTPS id D8D766DE1082 for ; Sun, 17 Nov 2019 14:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d= jb55.com; h=from:to:subject:date:message-id; s=default; bh=/DalcmlYFy9lz9gB02yGjPjjZBrEUTDvpMtMtcBxeu0=; b=DfiyuVg/3BdCLvQv04uVcl41c6FTaanGtyf6BuGe00S9pxedO9EnV4P0ARGR+L8pKH6WEvT3d3V5pgg3Iv7mknoPUiHwVLMtUY6QiojobsRpgaWV0KwzqZYAlTX3SzXBaQWn/CZoqKeKdnXfhZJxertidBnJE63ZJdl7YhsOUNOhXUhXtKrKDcOO+XL7aUUOoOiUajLoTQ3x70U3zc6xMK9498/iqivQMxoNwXUsiwwbVD+kJIXPgpalZEskT3B5HBPRbcARCXGPYdTtjJrIK48VJEiDvo9IXbXpU06ceAxV8+LTxVcJFXgYoJt8rQQnMp6A+29YR8r7CUfpBjebVg== Received: from jb55.com (S010660e327dca171.vc.shawcable.net [24.84.152.187]) by jb55.com (OpenSMTPD) with ESMTPSA id ea7fc4ca TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sun, 17 Nov 2019 22:29:48 +0000 (UTC) From: William Casarin To: notmuch@notmuchmail.org Subject: [PATCH 7/7] emacs/tree: add x/X bindings Date: Sun, 17 Nov 2019 14:29:29 -0800 Message-Id: <20191117222929.1064-8-jb55@jb55.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191117222929.1064-1-jb55@jb55.com> References: <20191117222929.1064-1-jb55@jb55.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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, 17 Nov 2019 22:30:03 -0000 Add x and X binds to notmuch-tree for functionally that we have in notmuch-show. The notmuch-tree-quit binding is somewhat redundant, since it is handled by notmuch-bury-or-kill-this-buffer which is bound to q. Signed-off-by: William Casarin --- 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 b8844b64..d3a54bcb 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -277,7 +277,8 @@ FUNC." ;; The main tree view bindings (define-key map (kbd "RET") 'notmuch-tree-show-message) (define-key map [mouse-1] 'notmuch-tree-show-message) - (define-key map "x" 'notmuch-tree-quit) + (define-key map "x" 'notmuch-tree-archive-message-then-next-or-exit) + (define-key map "X" 'notmuch-tree-archive-thread-then-exit) (define-key map "A" 'notmuch-tree-archive-thread) (define-key map "a" 'notmuch-tree-archive-message-then-next) (define-key map "z" 'notmuch-tree-to-tree) -- 2.23.0