From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id fduxKfWmBGBhEwAA0tVLHw (envelope-from ) for ; Sun, 17 Jan 2021 21:07:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MBEDJfWmBGAeMAAA1q6Kng (envelope-from ) for ; Sun, 17 Jan 2021 21:07:01 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 77E6394043B for ; Sun, 17 Jan 2021 21:07:00 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4902229D1B; Sun, 17 Jan 2021 16:06:55 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4D73F1FAD8 for ; Sun, 17 Jan 2021 16:06:52 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id D77AD5FF47; Sun, 17 Jan 2021 16:06:50 -0500 (EST) Received: (nullmailer pid 1434426 invoked by uid 1000); Sun, 17 Jan 2021 21:06:49 -0000 From: David Bremner To: Jon Fineman , notmuch@notmuchmail.org Subject: Re: notmuch-hello-mode-map removed In-Reply-To: <20210117151620.4aa6bb42@desktop.jonjfineman.com> References: <20210117151620.4aa6bb42@desktop.jonjfineman.com> Date: Sun, 17 Jan 2021 17:06:49 -0400 Message-ID: <875z3vi87q.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: S65UIFCHIR55VKJTO6ADP76WYW4U4JSN X-Message-ID-Hash: S65UIFCHIR55VKJTO6ADP76WYW4U4JSN X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.08 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 77E6394043B X-Spam-Score: -2.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: HunW0R1OkiTG Jon Fineman writes: > I just upgraded my notmuch library and noticed that per this thread the > function notmuch-hello-mode-map was removed. > https://nmbug.notmuchmail.org/nmweb/show/20200726165818.400-14-jonas%40bernoul.li > > I had been following this guide to map keys to various notmuch > functions. > https://notmuchmail.org/emacstips/#index5h2 > > For example I have this mapping: > (define-key notmuch-hello-mode-map "i" > (lambda () > (interactive) > (notmuch-hello-search "folder:INBOX not tag:deleted"))) Other people have commented on the map issue. For this particular command you could also add a saved search, and give it a key. M-x customize-variable notmuch-saved-searches for more help.