From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CC3dM0o1mWJlFgAAbAwnHQ (envelope-from ) for ; Fri, 03 Jun 2022 00:10:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gOTWMko1mWJcawAAG6o9tA (envelope-from ) for ; Fri, 03 Jun 2022 00:10:18 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 57CB4478C for ; Fri, 3 Jun 2022 00:10:18 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 99F6A5F7AC; Thu, 2 Jun 2022 22:10:15 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 354935F775 for ; Thu, 2 Jun 2022 22:10:13 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 3F1E55FBD7; Thu, 2 Jun 2022 18:10:12 -0400 (EDT) Received: (nullmailer pid 3235389 invoked by uid 1000); Thu, 02 Jun 2022 22:10:11 -0000 From: David Bremner To: "artur.brzozowski" , "notmuch@notmuchmail.org" Subject: Re: Defer notmuch.el setup In-Reply-To: References: Date: Thu, 02 Jun 2022 19:10:11 -0300 Message-ID: <87h752yaws.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ZAF3M6PVRXK463YXOBCGGMXTGR663AQV X-Message-ID-Hash: ZAF3M6PVRXK463YXOBCGGMXTGR663AQV 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654207818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=bUjyxcQ6vjs+WaXFYbMqzK0Vr9uIYg15co7tt48+joo=; b=BikSjSvNsI5GEePIjrOe9OM9mmLRH40W7YrIROvUY+ULLF1iEB4eAPmwX9MpQzF0+pgKZe ZY8UlzAKwdXNBuF39TtuHbh273RwibzL0iAojOmB9etO0runH1fUWD1N2fRTXFz4B9rpHA /0cV0weTV+kEq3Dw5zrd9PmWa5zjgT8HFyY1+N3rXIfYT7Rq1N7LNaqwlPZfvjD5dycELq S+wZmoeRyKV6KTNjptIn3P5Oo6dEZW8wqRItwy9UqPeCUpkbXCWbj38lgp5TB0oihi9EJD 3Brvc4UuO5J3T/7trkWe6pM33FIfjEdv1YpGKDcUtYk9BxGeQeikBBzVzHl1mg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654207818; a=rsa-sha256; cv=none; b=EvHkZSGhCc2aTdb/qKpbrXVsRciZ2WL/gO72Wddss1aGYy3AKV2vA2K8kOOCKK5NqobSpi aqqu+3OfjDyvEU5b2gRp2+4Qg0WM/a2WmeBuPB9Jl0yKpVW06xXWoGlmm7G+J0pC2NsmD2 DIMQQjwdYPpOsqsfOleFR7iUAYszxUWlbgm+J4gdxH5YqHdEt7fd9HQwuxrNrW0UBE46e5 yPRgvUfroz8LWzVYh11Ngb+Ij31/OaWKBBZpModaNNNzKlt43VBZ3+hdpsKCL0QNU/QTKS Xe9B50WldJY7RSVcyiIAntqVUa1MxdD/FislarAN8d8h+c/gOe79qj0aHbNZuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 57CB4478C X-Spam-Score: -3.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: Qvz+qVdJ3yWH "artur.brzozowski" writes: > I am trying out notmuch and notmuch.el as an Emacs user. When adding some > funcitonality to Emacs, I usually wrap its setup inside a (with-eval-after-load) > block to defer it for when it is needed. I noticed that in case of notmuch.el, > some settings are not properly set if included in in the macro - here I mean a > quite important option 'notmuch-search-oldest-first' which I set to nil. When > included inside the (with-eval-after-load) body it remains unchanged. Of course > italso makes me wonder if any other variable acts in this way and needs to be > set at Emacs runtime. I'm not sure about with-eval-after-load, but 1) you need to use setq-default for this variable (or use customize), because it is buffer-local. 2) You can achieve the same deferral of settings by adding your settings to ~/.emacs.d/notmuch-config.el