From 4786e739aff83474e1406eab99fc45e1d4a6ea78 Mon Sep 17 00:00:00 2001 From: Gerry Agbobada Date: Wed, 25 Aug 2021 23:19:56 +0200 Subject: [PATCH] feat(scheme): auto-add guix channels to load-path Guix is detected with a simple `executable-find`, and this trick assumes that guix is running on version 3 of Guile (which hopefully won't change for a while) --- modules/lang/scheme/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/lang/scheme/config.el b/modules/lang/scheme/config.el index 2ac7f0e4b..bc7ac298f 100644 --- a/modules/lang/scheme/config.el +++ b/modules/lang/scheme/config.el @@ -72,3 +72,9 @@ :when (featurep! +guile) :when (featurep! :checkers syntax) :after geiser) + +;; Add Guix channels to Guile load path +(when (and (featurep! +guile) (executable-find "guix")) + (after! geiser-guile + (add-to-list 'geiser-guile-load-path + (expand-file-name "~/.config/guix/current/share/guile/site/3.0"))))