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 34B176DE0F76 for ; Thu, 28 Nov 2019 08:14:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.36 X-Spam-Level: X-Spam-Status: No, score=-0.36 tagged_above=-999 required=5 tests=[AWL=-0.160, 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 iNZur-sEgdco for ; Thu, 28 Nov 2019 08:14:33 -0800 (PST) Received: from jb55.com (jb55.com [45.79.91.128]) by arlo.cworth.org (Postfix) with ESMTPS id 572886DE0F7F for ; Thu, 28 Nov 2019 08:14:24 -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=9VfdgCdLRpejeSkpMOo/MyRN/BEGr7OkvDZsYVvHbHI=; b=BlQHPoaTFiN4PugRsbb2h6vfMT/4+7ApM6AKR3TaIdlv9wT0SoaBovT72hx5wUMY41kq/zQ1pCZr/tl8maTYLtNRl393E6GhnZ2ZoSq7K1GR16FkzpqtqDxOozDJmzSixznDaFE4IPM58F1A8ql4r4v4He38Sn9GD0GxDhPw/TckOtpc1TPsDsVxj0JESPD2drANl7S9IzANDpSGZAQMj/UpAAsLqiMRsKI5YhPoeH9OyPlgvI7P8OYVBamHS5Cv45zmTa/nNtGXN9jO9Vr8EaAUC1kUf/HmOMiuPIaeXk8+/j3vlSU0O1+IFaarFIq70aOyGAirZsbu8NpiYmaUGA== Received: from jb55.com (S0106f0f249a68533.gv.shawcable.net [24.69.143.198]) by jb55.com (OpenSMTPD) with ESMTPSA id 9df0d483 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 28 Nov 2019 16:14:21 +0000 (UTC) From: William Casarin To: notmuch@notmuchmail.org Subject: [PATCH v2 7/8] emacs/tree: add x/X bindings Date: Thu, 28 Nov 2019 08:14:00 -0800 Message-Id: <20191128161401.28844-8-jb55@jb55.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191128161401.28844-1-jb55@jb55.com> References: <20191128161401.28844-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: Thu, 28 Nov 2019 16:14:34 -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 40838487..bdf0d832 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