[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guix and Emacs Integration for Polyglot Development
From: |
Ludovic Courtès |
Subject: |
Re: Guix and Emacs Integration for Polyglot Development |
Date: |
Sat, 01 Sep 2018 19:25:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Jan Nieuwenhuizen <address@hidden> skribis:
> Ludovic Courtès 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 ‘setenv’ what it returns.
>
> 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 = ((#<<search-path-specification> variable: "PATH" files: ("bin" "sbin")
separator: ":" file-type: directory file-pattern: #f> .
"/home/ludo/.guix-profile/bin:/home/ludo/.guix-profile/sbin")
(#<<search-path-specification> variable: "PYTHONPATH" files:
("lib/python3.6/site-packages") separator: ":" file-type: directory
file-pattern: #f> . "/home/ludo/.guix-profile/lib/python3.6/site-packages") …
--8<---------------cut here---------------end--------------->8---
Ludo’.