From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SOMIOkFNtmFndAEAgWs5BA (envelope-from ) for ; Sun, 12 Dec 2021 20:28:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qO7dNUFNtmFAFwAA1q6Kng (envelope-from ) for ; Sun, 12 Dec 2021 19:28:01 +0000 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 8BC352211F for ; Sun, 12 Dec 2021 20:28:01 +0100 (CET) Received: from localhost ([::1]:54842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwUVs-0004Pf-Ca for larch@yhetil.org; Sun, 12 Dec 2021 14:28:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwUVU-0004PO-0n for help-guix@gnu.org; Sun, 12 Dec 2021 14:27:36 -0500 Received: from mx1.riseup.net ([198.252.153.129]:51046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwUVN-00052I-5Q for help-guix@gnu.org; Sun, 12 Dec 2021 14:27:30 -0500 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4JBvmG67jYzF4mx; Sun, 12 Dec 2021 11:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1639337246; bh=avfasnyM3iDdG+k1hbdbLOOyWnSSZfmDBkwN6HX2POg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HQjZ/9hyui+t1prqoOt/OD4n8bsJt/mmySTuk+WJ9Js+CY/T9o6CDQ6xYZ5+PCrW6 oMtaI2szoJDJ+NBspaivlAjH6YF2usgYgP+X2txQ9Klxf/l7FOK9CAE131fs/UacAa NiIZ7bXvCm/vR4UY8IFzDCTRW+I8UJ9EEYhH/G40= X-Riseup-User-ID: 1531B1CB8292D0CDF95664DABFA910ABE1979DFC33AFA4E0205CD368FF9567F2 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4JBvmF0t3Qz20St; Sun, 12 Dec 2021 11:27:24 -0800 (PST) Date: Sun, 12 Dec 2021 20:27:16 +0100 From: raingloom To: Katherine Cox-Buday Subject: Re: Loading Common Lisp Libraries with GNU/Guix in a REPL Message-ID: <20211212202716.089695f9@riseup.net> In-Reply-To: <87wnk9g3kh.fsf@gmail.com> References: <20211210054458.GB5842@gac.attlocal.net> <20211210055454.GB6841@gac.attlocal.net> <87bl1oa44k.fsf@rdklein.fr> <87wnk9g3kh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 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, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: jgart , Edouard Klein , help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639337281; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Xkvlb/lH1ASHiPv8Wl3z+AU64QhkUQPS71bvo1hQVLA=; b=oeGN4fMCQYW8ATdRD5dzD+jfipS60gOw+y7pSPdfzcEnMw+4ac+Lx81VjoeFUNH1b6OWbG oc/zXI9SUBf0SRQE/vYwKAkoKSrahxwoiSCXqodonoUsRhd6lxl9J/9GVymZo3KFQYegH2 XWLTOIIZJRoe1zzbg14s57an7ODmd/4sPq/dAyzX5k/hcAhgKAgHtvLBEM22wK+82WE6fv jlcrarwgFUL0w8TjGJncT20d74MC1toiuBdj/bGVjRS1Gftr4IF0YXVeM85VG/WDsWH3yl EcxSvxHlwDsXDOmJ4nG5ufzgzPCjZhQtaup0i62QejBtGwJqddrZzQ0Ih8BdYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639337281; a=rsa-sha256; cv=none; b=rp0JuYFsKuXdCioIixWxUPo/aTrbjplKVxbgQpjQU15D/RUpzly3GbHxthLfdPe2xVVqon gv0yvcuXdvL2Z3dC3CchyQsh+F8RcXqahT4UvzbdBD0hx5gPXhuXfAIGNdN7nITEV9e6bv x34OgeePo4nTnfnKA1vn/Z4M0OBi9fdxOB9jdnPykicBR6Ev7TNUGD0zfkb4KCD8fOFZq0 Yqo/06GLSGrBQi+ehdEW7HOSIhG0bACZ3XH/FPkWFkpjhgcjevrdVLQRcdOhl3dUhMXr8I Vo02bBDUdoBgKg9DTklbk20edOMUZNB/Rp+4iLqpO2kxaWqGOARG/e3K2iTS1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b="HQjZ/9hy"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); 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: -0.47 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b="HQjZ/9hy"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); 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: 8BC352211F X-Spam-Score: -0.47 X-Migadu-Scanner: scn1.migadu.com X-TUID: ApYt02+O9u9U On Sun, 12 Dec 2021 11:01:34 -0600 Katherine Cox-Buday wrote: > Edouard Klein writes: > > I also don't know the canonical way, but I do it a different way. I'm > wondering what the simpler way to do things is? I know nothing about > rlwrap. But here's how I do things: > > Depending on the project, I may have a =guix.scm= package defined for > it or not. This only changes how I invoke =guix shell=, not the > technique. > > From emacs, I run slime: with =C-u M-x slime=. It prompts me for > which lisp I want to run, and then I type =guix shell -D -- sbcl=. > This seems pretty simple. > > I think I did have to include this in my bash initialization though. > I'm not sure if it will work without it, or if there's a more correct > way to do what I'm doing: > > #+begin-src bash > if [ -n "${GUIX_ENVIRONMENT}" ]; then > export > XDG_CONFIG_DIRS="${GUIX_ENVIRONMENT}/etc:${XDG_CONFIG_DIRS}" export > XDG_DATA_DIRS="${GUIX_ENVIRONMENT}/share:${XDG_DATA_DIRS}" export > PATH="${GUIX_ENVIRONMENT}/bin:${PATH}" export > PATH="${GUIX_ENVIRONMENT}/sbin:${PATH}" fi > #+end_src > > I hope this helps! > > -- > Katherine > I think Ambrevar's Lisp REPL page mentions something about sourcing Bash scripts from Emacs? Maybe? https://ambrevar.xyz/lisp-repl-shell/index.html