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: Sat, 01 Sep 2018 16:41:53 +0200 Message-ID: <87wos5cma6.fsf@gnu.org> References: <87wos9rp5y.fsf@gnu.org> 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]:59866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw768-0007ct-Tn for help-guix@gnu.org; Sat, 01 Sep 2018 10:42:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw767-0004Gg-Cg for help-guix@gnu.org; Sat, 01 Sep 2018 10:42:00 -0400 In-Reply-To: <87wos9rp5y.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Wed, 29 Aug 2018 20:41:29 +0200") 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: Jan Nieuwenhuizen Cc: help-guix@gnu.org Hi! Jan Nieuwenhuizen skribis: > I have an ugly hack to switch emacs to a profile or environment. It > parses the /etc/profile script...using MANIFEST or > `--search-paths' would be much nicer... > > Anyway, I'm using some named profiles, eg > > ~/.config/guix/mes > > and when starting work on mes i do > > M-x guix-switch-profile RET ~/.config/guix/mes RET > > similar for other projects I work on. Very nice! To make the code nicer, I suppose we could simply change it to use the Geiser integration in emacs-guix. We could call out to (guix profiles) and (guix search-paths) and =E2=80=98setenv=E2=80=99 what it retu= rns. It might turn out to be more code that what you posted though, so your solution is not that bad after all! Ludo=E2=80=99.