unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Fredrik Salomonsson <plattfot@posteo.net>
To: Einar Largenius <jaadu@lysator.liu.se>,
	Guix mailing list <help-guix@gnu.org>
Subject: Re: Setting up a geiser development environment
Date: Sat, 28 May 2022 03:16:55 +0000	[thread overview]
Message-ID: <87tu9apcrc.fsf@posteo.net> (raw)
In-Reply-To: <877d66efmq.fsf@lysator.liu.se>


Hi,

Einar Largenius <jaadu@lysator.liu.se> writes:

> Hello!
>
> I am trying to learn using guix and I think having access to a usable
> repl would be helpful.
>
> I have installed geiser to use with guix. I use the ELPA version of
> geiser. I installed guix on a foreign distro with the installation
> script found on the website.
>
> What do I need to do to make guix symbols available for use with a REPL?
>
> For example, I open a scheme file in Emacs and start geiser, but when I
> evaluate for example:
>
> (specifications->manifest
>  (list "guile"))
>
> It says specifications->manifest is unbound.
>

You need to have guix in the %load-path variable, then load the module
containing `specifications->manifest`. The easiest way is to just run 

    guix repl

from a terminal (or shell in emacs) to get a repl.


Or if you want to use geiser you can use guix shell to setup the right
environment and launch emacs

    guix shell guix guile --emacs

Once you got the correct load path setup you can just import the module
containing `specifications->manifest` in the repl.

    (use-modules (gnu packages))

To find which module that contain that procedure, you can search for it
in the guix manual and it will say just above it what module it
contains.

Alternative you can clone the guix repo and call something like
consult-ripgrep in emacs on it with the search term
#specifications->manifest#define

The guix manual will also describe how to setup emacs for hacking on
guix [0] that might be useful.

[0] https://guix.gnu.org/manual/en/html_node/The-Perfect-Setup.html

I hope that helps.

-- 
s/Fred[re]+i[ck]+/Fredrik/g


  reply	other threads:[~2022-05-28  3:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-08 18:22 Setting up a geiser development environment Einar Largenius
2022-05-28  3:16 ` Fredrik Salomonsson [this message]
2022-05-31 18:26   ` Einar Largenius
2022-06-01 19:02     ` Fredrik Salomonsson
2022-05-28 17:31 ` Tobias Geerinckx-Rice
2022-05-28 18:02   ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tu9apcrc.fsf@posteo.net \
    --to=plattfot@posteo.net \
    --cc=help-guix@gnu.org \
    --cc=jaadu@lysator.liu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).