From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QMaNEUCUkWK0cwEAbAwnHQ (envelope-from ) for ; Sat, 28 May 2022 05:17:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OBWIEUCUkWLTfgAA9RJhRA (envelope-from ) for ; Sat, 28 May 2022 05:17:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 940C21FD1A for ; Sat, 28 May 2022 05:17:19 +0200 (CEST) Received: from localhost ([::1]:49192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1numx4-0000UO-Fc for larch@yhetil.org; Fri, 27 May 2022 23:17:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1numwq-0000UF-Rt for help-guix@gnu.org; Fri, 27 May 2022 23:17:04 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1numwo-0001b0-M5 for help-guix@gnu.org; Fri, 27 May 2022 23:17:04 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1669B240027 for ; Sat, 28 May 2022 05:16:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1653707818; bh=JoGF87bf/y5fKzIa7/QEc5JmIJH5YBN+g2x3vS7Mwno=; h=From:To:Subject:Date:From; b=nPB8lWs00crO1il4DrAwXmWAS0VPu4Dz2ozkVP7C7glebz7lnZYzTnApGmeGO8U9L 6/bq6MhRQmfM9YIpjBPps4PdMcX1e33fzGmD70iNfkslHKtEXsQ0Z4K0nHIZAR5OFk 127hthx4L3aMUtteCTB8TuVydF3wad3ICvApOYxy4Z090Y6nl/07fUJTh19YhiGc9H o2Mii7FTA/goSUmnC+KfSX5i6T1pxM69DH0lxSK9h8epVDoa5MxVJgk+Ubd9+rNztD UE82thnlSp1KiBo1cDH/Uh8hsACZ33G3Pi8rHO5vGSvJtWPw/nNXQXxdE0ejGr6bsP xxknDAkWZ12dA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L96KN6mwRz9rxG; Sat, 28 May 2022 05:16:56 +0200 (CEST) From: Fredrik Salomonsson To: Einar Largenius , Guix mailing list Subject: Re: Setting up a geiser development environment In-Reply-To: <877d66efmq.fsf@lysator.liu.se> References: <877d66efmq.fsf@lysator.liu.se> Date: Sat, 28 May 2022 03:16:55 +0000 Message-ID: <87tu9apcrc.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653707840; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=miKlh8EuU7Aeo7S34inQvOt+UpZgvsW0Rn8fGuB2mqA=; b=IdLheTbxHGYt+t9poncp9/LWyOudT9ndMNGY7J7yQ1PW8bSsZB/rcj9UK6fv29P0slvTx4 HMeAfMRwxSEHLInJtL7zkm2sFQlODOCxNIiz/P8GNWw7nOMkeQJ4hlfZ3rS2DNpvteZt4T 2PlMpZz2T5dpU+LUbAlR8DqPVETTVcQ+qCJRYCAxS6fE/WHhaIE/hzDMVTEoNHOJ62bb+v hDGTdmv8uRkQGdsM57+Q+hbwcp8iQCgbc7Un5FHC2gas6YrjwBegMyQfpV4y5HY6Ihy0xs TN92wlsSq8F1ncYVb21hzIPtvo3ukYxM9oWhXBc3qke2Bsbvp6cGypIFOT+AKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653707840; a=rsa-sha256; cv=none; b=Y4g4Whl5GsRNMapWJzqE4EBjBvUi92UaY5c/Zwsz2mqwQCcVSGKimYdNbIvqfRcgDYrmnc hyH6F331XhYNcL5WbI83BaBN5oiznZKBO88jlfDdbCsRcUKwh+b0E5JCzKK0L8mvS/9f0n 8k6oZaR1ovOFijKJuSnSmb0AU5TQsf6DqSQ35Th4XM4UoHSIGKjj19LCWkRsq/kytikeFS QYHNQgcCzow+KK8AR/rtPA86HGKKdN7WRvP+kFkGVZi2Ed2auUlTtNhNCNOTiwLVHtDpVG +0DtpF0BS6w+BP4fFnLcP8YPyZy9V+yZROvmstfuRz+TX7cLz++nc36WxhUcWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nPB8lWs0; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nPB8lWs0; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 940C21FD1A X-Spam-Score: -4.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: CPDlA1fopyhD Hi, Einar Largenius 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