From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +Kt2CCV3NGMvEAEAbAwnHQ (envelope-from ) for ; Wed, 28 Sep 2022 18:32:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kNVkCCV3NGMKOgEAauVa8A (envelope-from ) for ; Wed, 28 Sep 2022 18:32:37 +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 D01B4121D9 for ; Wed, 28 Sep 2022 18:32:36 +0200 (CEST) Received: from localhost ([::1]:43950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odZz9-0006qF-U9 for larch@yhetil.org; Wed, 28 Sep 2022 12:32:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odXmf-0001VW-As for guix-devel@gnu.org; Wed, 28 Sep 2022 10:11:35 -0400 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:44578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odXmd-0000UH-Mw for guix-devel@gnu.org; Wed, 28 Sep 2022 10:11:33 -0400 Received: by mail-qk1-x734.google.com with SMTP id y2so7883898qkl.11 for ; Wed, 28 Sep 2022 07:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date; bh=UFR3M2Ckw8KMKo47IRyV1id+nNsW7Hy6sj5kmJi6qnA=; b=fgqgj2PfyDEUdpU3vsiq1H665TAPuALl87Z9SZ2petP+By6reHKebc5ZhN9ABD1MtL R0yY5wCQ6uKcWHJJplatcGi225e03i8Pz4eaF4ydeGp4gBqpi/VbXhhkDuQ2NkW0m0Ml ZinOwciHrc0uqCkGF37/J8EcxVi0/RuLXviSuv/6/plCbVI+GU7gGLZRjQ3sSF8Nlf35 Ewh5IyuI9Q+hTGwFbx5IWPiusYag3mJR9xKNm4wqSdnvNbXaxsgDeraNWTwAtn5V35Ex rqbLEcl3yChlBJhbJgsyXwk678MHpYw2n1TH1oEguIGYb7bi28awW1l29qG+kwDxybb4 uTWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=UFR3M2Ckw8KMKo47IRyV1id+nNsW7Hy6sj5kmJi6qnA=; b=MRH4/ZJ+VXJwGMq2a7lgYKA1IBHRDx9+BANavClNC0B6gICWvZo4Merfy92iZFYhIG zKpbHKSMUAzkdWhgONM+LeJWQYY/D5wO7DYPIj1KLCBadd7ycTSpltS1xZJn4PfIwdKl kvR5ApJQTvH+HtYaUWd4wnCDGvuN3FM5YGr9NgHfSPU2b+xnli4vzbQ18LGA0S6CgKuu 5pYiSGimCrRN/9hsIgnnNFPwsgSpE6XNkQYaPZnUnlxfDJ28Ho11v45nBZ1CuaNt4VM3 KVqRA8CHa+vsrMEd7AIzGVn3ZgMogcGEbJAAkFB1cooZ1CceCa89UQxleBXAaiiyEcnv oX5w== X-Gm-Message-State: ACrzQf349Vuc0qGGPnNJcpua9e/xGtxuu97vOCIJ3obX/eo+POeCUtXc Y8f3jeV2BhD5gXVbR3gT3Qs= X-Google-Smtp-Source: AMsMyM4IXstA5f4R4Y9Ts7+5NDYtdhSYmhI0BPKX+AfGjVTqqBRnIcLEXOvHo4DBNTl4k4jd6al1IQ== X-Received: by 2002:a05:620a:430e:b0:6bc:65fd:2950 with SMTP id u14-20020a05620a430e00b006bc65fd2950mr21369350qko.224.1664374288595; Wed, 28 Sep 2022 07:11:28 -0700 (PDT) Received: from hurd (dsl-148-95.b2b2c.ca. [66.158.148.95]) by smtp.gmail.com with ESMTPSA id bk14-20020a05620a1a0e00b006cfc7f9eea0sm828957qkb.122.2022.09.28.07.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 07:11:27 -0700 (PDT) From: Maxim Cournoyer To: "Thompson, David" Cc: "Olivier Dion via Development of GNU Guix and the GNU System distribution." , Olivier Dion Subject: Re: Emacs integration for 'guix shell' References: <87czbiugxn.fsf@laura> <87k05py1sf.fsf@gmail.com> Date: Wed, 28 Sep 2022 10:11:26 -0400 In-Reply-To: (David Thompson's message of "Tue, 27 Sep 2022 07:13:22 -0400") Message-ID: <87zgejwpv5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x734.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1664382756; 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=UFR3M2Ckw8KMKo47IRyV1id+nNsW7Hy6sj5kmJi6qnA=; b=WjAVgt7l7JqSiWt6H7bp1s82nWEYyK+PTHiqv0aVmEhMJJPV7UsXSeEcb2zdqO0Rud52uQ KpGTX++TNXBCGlkGrJ2mc9lSjPgFxIfo7NmZO4iyOXpaR0uzcPQACU0+7bCydBRSvGtNRe BrsRVqY+b0gbHwC5iLya1sA9vVFyOB7beQ2voiZK5AwSHjniw4SjGVtoX/XymHXvBrQxxM 9Rjl8QNfrlkWigcBMx+vzJE+TIX0nSvKEIwwUOzScE01iU+OF9TbNv4HyxsEwcaCwgMTHP +z8NlTG5+pwCXoHRVT42ZsZIdh4S6nluFUMF1ZSgvUCpSF2yDI/xw65Xw3EhKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664382756; a=rsa-sha256; cv=none; b=h8Ey5Co6p5h8XKE0WRIkkFm5djbH2fsun+6fP8pTmS327Du6Hc/DMPzeb7455Rgtum1PPn aR8ZlkHovvX1kAouycFZup8mIafRqTszTFMh0E3yT6PIlyfxOjMlzeq/OcdzitGKFx++Sd 7Rolvi9GLNwqqPo23kvn9wWw5NMwAX9KqJVsS+RboApLHJpWy+Y1lnEkc7ZU+wg4/3mNcX Ho/gPtRiIaQns48pyRv7YTNPNYYkdSd4ZGgEYJtrkoxogYakwOxHy5n6XRW92sORUDAkVB LhkHM/xRNAaOmN8DoozStYhq+ztnERJ4V6ug1wOxueeDVpfjMmbsrgq1GNOwlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fgqgj2Pf; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fgqgj2Pf; dmarc=pass (policy=none) header.from=gmail.com; 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: D01B4121D9 X-Spam-Score: -3.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7ijpISNl+ylf Hi, "Thompson, David" writes: > On Mon, Sep 26, 2022 at 10:44 PM Maxim Cournoyer > wrote: >> >> Hi, >> >> Olivier Dion via "Development of GNU Guix and the GNU System >> distribution." writes: >> >> [...] >> >> > I have the following in my .dir-locals.el for my library libpatch. The >> > idea is the same, but without direnv: >> > >> > ((nil >> > . ((eval . >> > (let ((root (locate-dominating-file >> > default-directory ".dir-locals.el"))) >> > (when root >> > (let ((real-root (directory-file-name (expand-file-name root)))) >> > (setq-local geiser-guile-binary (concat real-root "/.geiser-guile")) >> > (setq-local projectile-project-compilation-cmd >> > (concat real-root "/.projectile-compile")) >> > (setq-local projectile-project-test-cmd >> > (concat real-root "/.projectile-test"))))))))) >> > >> >> It seems to me it'd help everyone if Geiser should handle the above by >> itself. It'd be cool to have the above functionality merged into Geiser >> itelf. Just saying; thank you for sharing! > > With Emacs 28 and new versions of Geiser (such as the one in Guix) I > highly recommend enabling per-project REPLs. By setting > geiser-repl-per-project-p to 't', commands like M-x run-guile and C-c > C-a will open/switch to a REPL associated with the current project as > determined by project.el. This is useful for when you are working on > multiple projects at once as it makes it harder to mix up REPLs, but > Geiser also automatically inserts the project root directory into > Guile's load path. Thanks, that's very useful information! It seems like we could simplify our Geiser auto-configuration snippet in Guix's .dir-locals.el by making use of this new Geiser feature. Maxim