Solved it! And it was mostly due to my incompetence (like not being good at RTFM and being a Guile Scheme noob). I did the following to get a functional Emacs environment for hacking on my Guix home configuration:
- Load the right path by adding the following to my
init.el
.
(with-eval-after-load 'geiser-guile
(add-to-list 'geiser-guile-load-path "~/.config/guix/current/share"))
(with-eval-after-load 'geiser-guile
(add-to-list 'geiser-guile-load-path "~/src/nonguix"))
- Load the configuration file with Geiser Guile.
C-c C-l
orgeiser-load-file
orgeiser-load-current-buffer
.
Then it should work.
I thought that it was enough to load the path to the cloned Guix (not compiled) source code and then just open a Geiser Guile REPL associated with the current file.
These two chapter in the manual helped: https://guix.gnu.org/manual/en/guix.html#Invoking-guix-repl and https://guix.gnu.org/manual/en/guix.html#Using-Guix-Interactively. I kind of missed these chapters and went straight for the "perfect setup".
I think the manual should inform new users that they can load ~/.config/guix/current/share/
into Geiser Guile if they want to hack on their home configuration. Or maybe I missed that part.