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 eHbzJxsROGOXJQEAbAwnHQ (envelope-from ) for ; Sat, 01 Oct 2022 12:06:19 +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 6JEiJxsROGNIfAEAG6o9tA (envelope-from ) for ; Sat, 01 Oct 2022 12:06:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6D8DC5EF8 for ; Sat, 1 Oct 2022 12:06:18 +0200 (CEST) Received: from localhost ([::1]:55236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeZNx-0006AY-1F for larch@yhetil.org; Sat, 01 Oct 2022 06:06:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeUOr-0002Wi-Pm for guix-devel@gnu.org; Sat, 01 Oct 2022 00:46:53 -0400 Received: from mout.gmx.net ([212.227.17.20]:53413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeUOp-0000Yq-RA for guix-devel@gnu.org; Sat, 01 Oct 2022 00:46:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664599608; bh=1YaGPypVSUQC2oQksfjjlN0B8qZ5V0zX56u4kqQp6TU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=dmD6hyrRlMqaAnv29bzUeKUx9zEcfirXtVAexLa0WtF6L3Lo6PmJnQOIiTY0hZnFc O8kSuCs/oz0XHuYwGFWTZKV8SNnThWC0DMxmly9DeUKwtXsOlao/GHxT8Es9xn7aYD LH0bygEv58zIj1a1guTkUWDvDkIYwfKyoasi+Vvc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Geek ([117.194.144.219]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MCbEp-1oUtk41S79-009dHP; Sat, 01 Oct 2022 06:46:47 +0200 From: James Thomas To: "Thompson, David" Cc: guix-devel Subject: Re: Emacs integration for 'guix shell' In-Reply-To: (David Thompson's message of "Mon, 26 Sep 2022 13:48:25 -0400") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.90 (gnu/linux) Date: Sat, 01 Oct 2022 10:17:47 +0530 Message-ID: <87fsg8w3nw.fsf@gmx.net> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:MdApHuqY5XFXh6QbI1W+weX9RY6h3rOlXOCoj8sdNQLGGjinRsD rB/K7AfyQEoJp2i8VUumOCBJw/HU4nMvotfT+yllb9ARF02Jk4luyP092Bd8kLa+DuP+NG4 R7vsHoBxFv4YUwc6DCFlGhupqYPkyMYgqjNcQnuVYgJAoNuaoLPemuls0O5vUt1KaPCTrPh i7j/unGcL9FPJyQBABGFg== X-UI-Out-Filterresults: notjunk:1;V03:K0:xt+RuuIt7Qs=:GvNcQCwET55GTgx/yF+6QE krki83tdK+5oFNn+QpDpTiNjV8U87Frg8hf8XbAizqY40kF1h04WgNrB8COabjZsQtBcGIfbh 70uNGmAThfqqKuQgEPqcqhQlfIjiURC0mWyo1jHZdOh/EZo4GiSxym+WUTsYQlxnaQGkYrd8E tlPfXJu2WRoBV98aJ86CVXUE573A/Hw3UQT1VwGRSo6HlXV2sanw/yTLPSFvp3x9Gf83wvTyo +UWxRnb3ZRt5a4ULyGRCoudMkeYaj9x9dVWDKNm7VU++WZ6u7+/tVBCU0gADOQYcnSb3u1mve fY1s48rHqYsVnI3mI8coJslaAafgInwcK7M8PdgtvjT9WvY4UfCw8Z/lly+gPOU/R/ASpuEj1 fYPbLJCAfIW4/TkP2kqZfONfdjBCyUfRdXGsfsQZwzt9i7JkiemIL8i7lhXiVj8I/UJ2B73Ry zJ0EI4yCZPAL30miaTTnyUGb2kWIv9bBUWJlRzvgCzZO355lUDcE6oAQXgTw4X7ZPKsRi5rPt 5F+lpelfcpC+j5+KR8FKF0Zx1JUFcIh1xE4ueBxZ9AqY7NshSLl8YNsS0jZ5zyxLiNScXsyqI ztn5h37Fjrq0aAUekilR5f7K903CQSx6/A9xbvruPCAQ2epsQ0hYZkv/4udmoPrdn8PJ2/LhD uf7T9lQ4S1UPBz9GeodIwdCAsS6t9DXXxJe/EgP8zrmkpmwKALpuKG9M3T1wesvVykdYjMOum MTyB6gf9DvxXd3twuRzsxAhz8sUi1lnD/KFVcJ+t6onS2qQlVC5HjwD4h1xXYGeKz8LHknpM2 0lAAXvik6puxL2gn2fn1bjqjpjQW2QXwPqLuLjosRGaHA1tLxQessD9VsVjR1ByXhYKaxWcsl EgxNARiSsxa5Naz/Sv9pVZRZRDtqFSoYqauWg19GeC2T44mODMWOonSQlvllzVbGBuUcfRLL8 /KMqkx6ZIvLj+pDksvwlysSWPJG0KCYUjfX/Fh/PmjYInaGJG/n2DnC4CHEmlN6qpXmWyFc3b arLzqW3RyNSeldqXnpDIeTX92omIV9scdIyNEw0h1QJGHNSRHLie+3ulgPvSzdcQWaDgLG+ea bMlZ+bfrRwVrx+TO0KB3/fatCmUR27LPJ+Gx9g5Y32BUCwhkWf7UPvEZ+nyGL2lKx3oF4L7p+ wECslHKLp6BM+a5shMMPdISKhv Received-SPF: pass client-ip=212.227.17.20; envelope-from=jimjoe@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 01 Oct 2022 06:06:01 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664618779; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xlhdtLS6fU6mWNNobt0/aCNknPpbP4i/Zt4jl14uH04=; b=ta3z/3HdIw90WDoO7taO6DW57Oq84pyU3QbPvmtd+m1b2liRUNyXgak7gtuwCppnzsLFOK 0tFG/M+1Nq8t5GRqySLBrgKh4yoAHJXMpfLiC9DtDePP2vPrQsIFRnJPbaIpDThE5XTqo4 zRhLCl7vFLNxocARsy3xn8UwQR7l5gJavH7O2ib48VFJAv8KG0fTRmqGf1JH4zomOUZJIc OqYnRR910/LGWtJ6zXtcYCDCP8VmY16YL3HGCwAppf3nimo8bPaBayrd17lcms9wWCjhtZ 3O95DJ/7/z09cY2gL9Gp2fKx1/tTcF+PmIgShO3iyNddPv/HfDpH2+6wt4ikFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664618779; a=rsa-sha256; cv=none; b=H8ETYxxuQoipuiILzZLleIzSMuQ9GbfADpqgveTysENCvA8+61SgVQex/2obWSted+f8lB ZvGqKmEIziQRNncCvSSzX/bhtOvPaatAGTTpB14IsJbS3YXeM7F3h1K8coS9zhZ3+HVsF+ dJtXNkioqDSjK4Qzqm4vRaCa1xZOxnbwy+4QWJm2an+kA0w3cMHKpRoGuhEDQ6BDniJFhb DPdzTAbjhyTQwsIldLMcJt9NASY/L3a/i8bmzHGGxQFb9lXnHqfVMeLXZC2ydPsWdP0SQH gJmbBg+2nkbwP+UT1IsrcP+wLOsHGNwU5pQiQ+O2LskLE+stnGh4mgSSbiqAoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=dmD6hyrR; dmarc=pass (policy=none) header.from=gmx.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=dmD6hyrR; dmarc=pass (policy=none) header.from=gmx.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6D8DC5EF8 X-Spam-Score: -5.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: uU9NQVTjbRu9 Thompson, David wrote: > It's very cool that it works, and I should have done this years ago, > but direnv is an unnecessary middleman for me because I don't use it > for any other purpose. It would be *even cooler* if Emacs could call > 'guix shell --search-paths' directly, parse the result, and update the > buffer environment. Furthemore, it could integrate with project.el > (thus requiring Emacs 28) so that per-project search paths "just > work." The emacs-guix-shell [1] project attempts to do this. Great work! You might also want to check out a package called buffer-env [1] for this, which is more generally applicable. [2] is a blog post describing one way to use it in Guix. [1] https://github.com/astoff/buffer-env/ [2] https://amodernist.com/texts/emacs-guix.html --