• 24 Posts
  • 49 Comments
Joined 23 days ago
cake
Cake day: November 25th, 2024

help-circle






  • 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:

    1. 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"))
    
    1. Load the configuration file with Geiser Guile. C-c C-l or geiser-load-file or geiser-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.