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 19:25:18 +0200 Message-ID: <87k1o5b05d.fsf@gnu.org> References: <87wos9rp5y.fsf@gnu.org> <87wos5cma6.fsf@gnu.org> <87tvn9s14w.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]:42045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw9eL-0004QW-Vh for help-guix@gnu.org; Sat, 01 Sep 2018 13:25:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw9eL-0002Tk-7P for help-guix@gnu.org; Sat, 01 Sep 2018 13:25:29 -0400 In-Reply-To: <87tvn9s14w.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 01 Sep 2018 17:11:59 +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 Jan Nieuwenhuizen skribis: > Ludovic Court=C3=A8s writes: > >> 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 r= eturns. > > Hmm, interesting! I was thinking I should have used the guix repl to > guix package -m ... / guix environment --search-paths; or that we should > create the information that's now in etc/profile also in sexp form, > possibly readable by Guile and Emacs Lisp alike... In all modesty ;-) I think the API is rather good: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use(guix profiles) scheme@(guile-user)> (profile-search-paths "/home/ludo/.guix-profile") $11 =3D ((#< variable: "PATH" files: ("bin" "sbi= n") separator: ":" file-type: directory file-pattern: #f> . "/home/ludo/.gu= ix-profile/bin:/home/ludo/.guix-profile/sbin") (#< variable: "PYTHONPATH" files: ("lib/python3.6/site-packages") separator:= ":" file-type: directory file-pattern: #f> . "/home/ludo/.guix-profile/lib= /python3.6/site-packages") =E2=80=A6 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.