From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Guix and Emacs Integration for Polyglot Development Date: Fri, 24 Aug 2018 23:55:53 +0200 Message-ID: <87bm9rjuom.fsf@gnu.org> References: <871sbowlws.fsf@devnulllabs.io> <87bmalchr9.fsf@gmail.com> <871sbcpqsy.fsf@devnulllabs.io> <87pnydkylw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftK3k-0005tU-4g for help-guix@gnu.org; Fri, 24 Aug 2018 17:56:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftK3j-0006Ts-6X for help-guix@gnu.org; Fri, 24 Aug 2018 17:55:59 -0400 In-Reply-To: <87pnydkylw.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 20 Aug 2018 08:32:11 -0400") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Maxim Cournoyer Cc: Kenny Ballou , help-guix@gnu.org Hello! Maxim Cournoyer skribis: > I think it's a valid question here, and I'd like to find a great > solution too! So far when using guix environments, I resorted to: > > 1. Spawning the environment in the command line > 2. Starting a new Emacs instance (not attached to my Emacs server) from > this environment, so that it gets access to all the variables and tools > defined within the environment. > > I see there is a way to create Guix environments in Emacs using the Emacs= -Guix tool, > but it seems those are limited to be used from a *shell* like buffer; > Emacs is not magically picking up tools that might become available in > that new environment. > > If you find a more integrated way to work with a single instance of > Emacs (say, emacs-server) + Guix environments, please let us know! That=E2=80=99s also something I=E2=80=99m interested in. For example, I=E2= =80=99ve done things like: M-x compile RET guix environment =E2=80=A6 -- make -j4 in the past, but it=E2=80=99s inconvenient and respawning =E2=80=98guix env= ironment=E2=80=99 every time is inefficient. It would be nice if we could somehow attach an environment to a buffer, and for instance have M-x compile operate under that environment. Another interesting thing would be the ability to have Babel snippet specify their complete environment, instead of just the language. For that we=E2=80=99d need help from Emacs-Guix to keep track of existing environments. Maybe if Alex Kost is reading this they can comment. :-) Thanks, Ludo=E2=80=99.