From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kJgEMiOjBGCcagAA0tVLHw (envelope-from ) for ; Sun, 17 Jan 2021 20:50:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aDmpLSOjBGA9JAAAbx9fmQ (envelope-from ) for ; Sun, 17 Jan 2021 20:50:43 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 848D39402D4 for ; Sun, 17 Jan 2021 20:50:43 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id ED48D29DA7; Sun, 17 Jan 2021 15:50:37 -0500 (EST) X-Greylist: delayed 410 seconds by postgrey-1.36 at nmbug; Sun, 17 Jan 2021 15:50:35 EST Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by mail.notmuchmail.org (Postfix) with ESMTPS id 140CE1FAD8 for ; Sun, 17 Jan 2021 15:50:35 -0500 (EST) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D8ED916005C for ; Sun, 17 Jan 2021 21:43:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1610916223; bh=AeUyK6MhDrdUCbmLVhaO0D6MBlXqIMPEw3B9rN0vDc4=; h=From:To:Subject:Date:From; b=BWae++FuWtd3HcRWhRQr7XHoJJ9nkj0LWhdNt7Dvl2Qzvw5gxVI9XDZMcem2oBrJD YITi/v9TMDInlUdm6XwFMYtVo7nEc6VgYwjJxP5Q567g7HmD41EtUUhxGQa2JBfsKP cLt/N+Hj6fFyHULmkjo/top7Jzv/63XiWjXAOYgKOf/9sXxRnD3UQqKqGsuGZptoTS NoTCcFL1FNLYAHDRmi8aCy16vkgEoiO59w6YwREkA026663cKVmboh7pkU3Y+LlA// H+KQEo6DJofF+2CyECZYjVB4e4ANIb989gaLBSH/fjtyXdpr99aZ71YD/HNzExl9A1 /F8shY6/ssZWw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DJn245D5Kz9rxV; Sun, 17 Jan 2021 21:43:40 +0100 (CET) From: Tomas Nordin 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 21:43:39 +0100 Message-ID: <87o8hnb8g4.fsf@posteo.net> MIME-Version: 1.0 Message-ID-Hash: NJD4MFBJIIKDGVQ6ZKWJIA4MRJV4BDXN X-Message-ID-Hash: NJD4MFBJIIKDGVQ6ZKWJIA4MRJV4BDXN X-MailFrom: tomasn@posteo.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: -0.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.net header.s=2017 header.b=BWae++Fu; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 848D39402D4 X-Spam-Score: -0.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: H/n5fCk+Emxt 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"))) > > Still being very new to emacs and elisp I am having trouble coming up > with how to replace notmuch-hello-mode-map with another fuction. I don't think you have to. notmuch-hello-mode-map is a mode-map variable and your 'define-key' is using it as such. I have a lot of those too and hope it will continue to work. I think it will remain a mode-map also after the change communicated in that thread.