From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0K8dNRm0bmNXoQAAbAwnHQ (envelope-from ) for ; Fri, 11 Nov 2022 21:44:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0MReNBm0bmMH5QAAG6o9tA (envelope-from ) for ; Fri, 11 Nov 2022 21:44:09 +0100 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 3FB6632B1C for ; Fri, 11 Nov 2022 21:44:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otas8-000265-Iw; Fri, 11 Nov 2022 15:43:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otas7-00025x-Ls for help-guix@gnu.org; Fri, 11 Nov 2022 15:43:31 -0500 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otas5-0001nM-N7 for help-guix@gnu.org; Fri, 11 Nov 2022 15:43:31 -0500 Received: by mail-qv1-xf2c.google.com with SMTP id n18so4027342qvt.11 for ; Fri, 11 Nov 2022 12:43:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Xtz73D4J9M/Vx5id7+FncsqqMtF1oKMtj+++lFAvcE4=; b=cD7QMzrhHyio6E/j6bNCtxX8586K8Ube4rN50YT41Xdj7N6aqbUQNfRUaOKbpnDDG7 n73ycS+WbAL4xBGMV7PPZ26dtpSPtHJaz01hnMa/IMrrxAoM7VthTFCd8aSANIqTlEXk a/TdDoFUidzAKCbUoUaqf/4ueJutGsNt/cifuJB8enyquXfE+ZpGkPV8JEZpqumED/hs uODd0AOqRWiBTJ9c5wxQsVp0QzXKrZUhlTySyE1MhPLrZY7STUnJM0m9JivPGLU3Zm4v 4I9ZoYile58Yg3m/Q8iCzzGRXl/CBq59GOiRQhuCRkx3Hd6eYj/2f8eWR4OgpqfU1zF5 QtQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xtz73D4J9M/Vx5id7+FncsqqMtF1oKMtj+++lFAvcE4=; b=sB22A/G35oITBwkvkLvSGKjI0DvuuI3RcSWcai7dClil0vzb7z6F3oe3sgvbWgsFwk flE+Y0xQREAijaYXAEH76XqOpk+cV/RRKlDwH0Ls4KLhcqcZHf4klj5oPcBfqAjjtjbi KXeu6Bk1Xnljja1BULbvHdLQAqd3KFqGZ74iXJ3YKi1V54b4n5weSbPlu0iRugwGvdBv C6WIFkjkBUiyMncgqXI0nyWUn1Q4cUkrXulCAhXaaq/HKNPT5l2ABfGXVCSyvqeJ4B2k q3LCISxO+/hpe6+TpXcaauZST1lF01W8l6oaBwLZrWMMg50KV2Nxhn1mvb7fSV3hSByo 2mkQ== X-Gm-Message-State: ANoB5pkHRK36CS0lIP06aIhsAe4WHdUCvt56aWcg7dtPuJEpOIzioUdC CTMNZbRKSevlzawBCnWjQVsrTrvH480= X-Google-Smtp-Source: AA0mqf4MBGcicBZuSHC+cltO/ALOjLbJ7eiMULgp1VqcxFHOJtu8BqU3pAHte8SDVZCBz0tISt3FMQ== X-Received: by 2002:a05:6214:450a:b0:4ac:8568:12bb with SMTP id oo10-20020a056214450a00b004ac856812bbmr3570919qvb.35.1668199408455; Fri, 11 Nov 2022 12:43:28 -0800 (PST) Received: from localhost (237.sub-75-194-224.myvzw.com. [75.194.224.237]) by smtp.gmail.com with ESMTPSA id y20-20020a05620a25d400b006faa88ba2b5sm2086644qko.7.2022.11.11.12.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 12:43:27 -0800 (PST) From: Jake Shilling To: jgart Cc: Guix Help Subject: Re: geiser-edit-symbol-at-point In-Reply-To: <20221111124046.GB17675@dismail.de> References: <20221110193527.GB571@dismail.de> <20221110194440.GB1732@dismail.de> <87sfipd0kz.fsf@gmail.com> <20221111124046.GB17675@dismail.de> Date: Fri, 11 Nov 2022 15:43:26 -0500 Message-ID: <877d01dxxt.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=shilling.jake@gmail.com; helo=mail-qv1-xf2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668199449; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Xtz73D4J9M/Vx5id7+FncsqqMtF1oKMtj+++lFAvcE4=; b=LyzQBKm38iDks9VFX8fBzZmRgrXOGdiJF/UuaHQkyAEz0hX1RS5wrCIGdsChsfuDW+Y2A1 tXJRuBGi1ZBK2qghAshwOAMjt3y+Wgvu55i63Sh5O7rQhq7/Fl4Gu3cGcI3bjCmz5/ZOP+ +9cPgDGLUf30xMP1BJpmxm3r4duxLddWQ7/s524gS1SUm2iTE/AcuCefJV2O2uHOfYKGZh mp59thTAgI3fTI1EllQgc5SFCVt9b/AiP/cnGXlr3zYpWo3Oko+fCy4DeqyxsZQ5dHTkmr W5wNVzGlhJ8FeetAKKZLWI00+CFcM1jy4RoFaDGN28S5Ke0i0yyJm+Wnmo9m3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668199449; a=rsa-sha256; cv=none; b=QTFx+Ba21/gPOXvC84Gs8xA+4kI3t+I6k8sxo575BuM0GsKBUaqd9Moiy6j89IKSFYv1Qh 7i2ey+6kMfdFuzCGFH4aC85q1pHk3HJTj2iHbL2u/rVYQrrP82/kaCHZcZE66KQ9tAkunF D5cMbNLAUrWFnSSHOLWzvsjPwrofPB8IltPAoCHjnKR2XumbEsXEUhwoGql/DZINTmT3Ez 79loEG6Sa8Y+cTuhshAx5ggkJcuOxjSPQ/LfrOjXh01KsVPYDm5CQT2FX+Vcj9zFP9IYAo uz/IhOkWBYs20lBaJZvY5XFeHeJR93k3HjtWc4WxA1i4gFdvIQCShKbBHgelzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cD7QMzrh; dmarc=pass (policy=none) header.from=gmail.com; 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: -5.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cD7QMzrh; dmarc=pass (policy=none) header.from=gmail.com; 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: 3FB6632B1C X-Spam-Score: -5.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: ie3iD4mi8qGK --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2022-11-11 12:40, jgart@dismail.de wrote: > On Fri, 11 Nov 2022 09:31:40 -0500 Jake Shilling wrote: >> my configuration files, I have a toplevel script which updates the >> %load-path: >>=20 >> ``` >> (when (current-filename) >> (add-to-load-path >> (dirname (current-filename)))) >> ``` >>=20 >> So when I load that file into the repl with C-c C-l all the subsequent >> use-modules work. > > You have to do all that before geiser will pick up the source files in > my guix checkout? You would only need to do that for a script that is not included in either your `GUILE_LOAD_PATH` environment variable or in 'geiser-guile-load-path. The directories set up in either of those places will be used to initialize %load-path when the guile repl starts. To give you a sense of where I'm using this: I have a repository [1] cloned to ~/dotfiles, which contains a script that generates a configuration for guix home. I want that script to know about other modules I make in the same directory, but I don't what scheme programs I work on in other places to be aware of my dotfiles helpers. Putting that block at the top of the file is what makes that work (i.e. ~/dotfiles is only in my %load-path after I evaluate ~/dotfiles/config.scm). This same dotfiles repository also makes use of modules that come from different channels (mostly the default guix channel and RDE [2]). I do want these modules to be visible in ever guile repl though no matter what script I'm working on, so I handle that by setting my GUILE_LOAD_PATH: ``` GUILE_LOAD_PATH=3D"/run/current-system/profile/share/guile/site/3.0:${HOME}= /.config/guix/current/share/guile/site/3.0" ``` Any time I add a new channel and run `guix pull`, that channel is going to be checked out to ${HOME}/.config/guix/current/share/guile/site/3.0 and be picked up by default. This works for me because I'm not actively working on the guix source code, so I don't want to manage that as a project cloned down manually. For me, guix is just a collection of modules to use in my other scripts. All that is to say, you only need to do something like the block above if you have a directory that should only be visible to certain projects/script files. If you add any directory to the geiser-guile-load-path then it is going to be picked up anyway and you don't need to do anything special. [1] https://gitlab.com/shilling.jake/dotfiles/-/blob/master/config.scm#L5 [2] https://sr.ht/~abcdw/rde/ > > Just doing the following as recommended in the guix manual is not enough? > >> (with-eval-after-load 'geiser-guile >> (add-to-list 'geiser-guile-load-path "~/guix")) > > My source checkout of guix is in `~/guix`. > That is definitly enouhg to make sure ~/guix is processed by guile and then Gieser. The only caveat is that if you forget to update the repository there, or forget to guix pull, then you could end up with Geiser looking at a different version of the guix modules than what is actually installed in your profile. =2D-=20 Best regards, Jake Shilling --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEETgkkkGxzdwUBX+jR7vAMAFB0hsFAmNus+4ACgkQR7vAMAFB 0htWdg//Zuf9XPHHSaLxVh5WJbhy7E0005N6Xz7Yv7qeB2wBeuMfXv3bTLgSHQsK 1tp03X12ftEjs3FuPbYgsu6/cFwh1CvmKyhAFArcOt8kn6ZYxX6RUWLOX6Vcqh78 75iJRTbaXVKXpHpwkqkSiuvc30rM0CrWftErQiMD8jPBa1T9VdRctyBLt4NsBv1h ZXnkV6JPukNhPjeO36Q587pOKYfAeIbXferFZUs1BFldNGI0dDJt0nvwCU0eTjet 4+8XrfDcG1v0Jy65euLw+HWdRjqLcFD/f7r1OhG7CWm4ERhobj+STWGVm9Y0hbz5 VqM7r7DsAhhiMHhf7uBVoBwnMmCiFQeWsoA1ydWR4ONOkYJvkHD9af5FKCWwKc6D 3jMEVoZpaEmet7X8uYE4tRj0qIT8PJuU2cALZge2ttXBdqO2E6u1OOw1D1Ytxhnd BvVDvi+J1f8ZL1CeNBMuStT9k/34c84pBIVuoALNlZH63QgcaLEtG+5k4MC9y3X9 JdE5fKJnu2MYZWvpFEosQrjb9P74wdWaufwhnO6ZSAsMOqfpWI6PaABK+I/4U9qc tXG7pFnfYzJsUkWd4+qnR9cP3HqSbxly5koiWcG4xHM3p+rYr+77byeiwYZ/LF8h fJBOT/yFgShK2b2vrDfcOUl6I8gBSVtWoKSqP9l4b6oWgAEXHBE= =7gAT -----END PGP SIGNATURE----- --=-=-=--