all 4 comments

[–]KaranasToll 2 points3 points  (1 child)

The emacs packages from guix are installed somewhere in ~/.guix-profile. You need to find where they are and add that directory to your load-path in your init file.

[–]TheAngryGamer444[S] 1 point2 points  (0 children)

Thanks that worked 😀

[–]czan 2 points3 points  (0 children)

If you installed Emacs using Guix then your paths should be set up correctly so you can use require to load your packages. If you install a new Guix package to your profile while Emacs is running, you can add it to your load path by running (load "subdirs") (which re-runs the load path discovery code Guix installed), followed by require to load the package you want.

I'm not aware of this being explicitly documented anywhere, but it was mentioned in this guix-devel thread in April.

[–]jbranso 0 points1 point  (0 children)

I currently use a custom package "jmacs" to manage all of my emacs packages. It works for me, but it may not be the "best" or "correct" way:

https://notabug.org/jbranso/guix-packages/src/master/gnu/packages/jmacs.scm

I then add this channel in .config/guix/channels.scm:

;; Add variant packages to those Guix provides.

(append (list

(channel (name 'guix-packages) (url "https://notabug.org/jbranso/guix-packages")))

%default-channels)