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 EF3D26DE0F96 for ; Wed, 13 Nov 2019 14:58:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.346 X-Spam-Level: X-Spam-Status: No, score=-0.346 tagged_above=-999 required=5 tests=[AWL=-0.146, 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 YxWOTB2A0RHz for ; Wed, 13 Nov 2019 14:58:14 -0800 (PST) Received: from jb55.com (jb55.com [45.79.91.128]) by arlo.cworth.org (Postfix) with ESMTPS id BB2C36DE0F94 for ; Wed, 13 Nov 2019 14:58:13 -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=uzfJ+VJAjGJ+kJipMVgqjpJpNmxYHdW+SjgSlJWuAkU=; b=puVdHQhNgnEDOKlimHvADsfZ1oGAjC0N14MqlDy1wk0zzahK5idPu3j6zm3ze6h/2gv4RGVPVo5VQmn0UxaebOZdHUbLjgWdvH+gnJk05ecdaunbRrgQrHbr/Q7DBPMbX/eonJ6CUSHhGvAHMsnSs+hUjJj6vT9ATJReBUcQxvXafikkaHkKDYKxcAssOX8MdhZ942KR1pvflz5XxDF5+OkiXcK1xlqHvMdGFIujOFc+sXEW6s6YvNfT3IkOaFLEtAIIPzKTD/EAI8vRmTwCB+kCWhwnU664oRExr5JTuJrdEA/WNIDkoPScR6JY45VPMdWMlByhLEo79E6hxGt4LA== Received: from jb55.com (S010660e327dca171.vc.shawcable.net [24.84.152.187]) by jb55.com (OpenSMTPD) with ESMTPSA id 9ec878b3 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 13 Nov 2019 22:58:11 +0000 (UTC) From: William Casarin To: notmuch@notmuchmail.org Subject: [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread Date: Wed, 13 Nov 2019 14:57:52 -0800 Message-Id: <20191113225752.26502-1-jb55@jb55.com> X-Mailer: git-send-email 2.23.0 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: Wed, 13 Nov 2019 22:58:15 -0000 This is an unbound function that is quite useful. It opens a selected thread in notmuch-tree from the current search query. Signed-off-by: William Casarin --- This is a simpler alternative to id:20191113080004.32214-1-jb55@jb55.com emacs/notmuch.el | 1 + 1 file changed, 1 insertion(+) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 773d1206..0d68d123 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -188,6 +188,7 @@ there will be called at other points of notmuch execution." (define-key map "-" 'notmuch-search-remove-tag) (define-key map "+" 'notmuch-search-add-tag) (define-key map (kbd "RET") 'notmuch-search-show-thread) + (define-key map (kbd "M-RET") 'notmuch-tree-from-search-thread) (define-key map "Z" 'notmuch-tree-from-search-current-query) map) "Keymap for \"notmuch search\" buffers.") base-commit: 7ad7cfbff232431377562271901ee00202bf0bd0 -- 2.23.0