guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: questionable advice about Geiser load path setting


From: brian
Subject: Re: questionable advice about Geiser load path setting
Date: Sat, 26 Aug 2023 07:27:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

Csepp <raingloom@riseup.net> writes:

> The docs contain this recommended Emacs setting:
>
> @lisp
> ;; @r{Assuming the Guix checkout is in ~/src/guix.}
> (with-eval-after-load 'geiser-guile
>   (add-to-list 'geiser-guile-load-path "~/src/guix"))
> @end lisp
>
> I haven't been using it for a while because I remember it causing
> trouble whenever I was working on other Guile projects.  I have been
> running Emacs inside ./pre-inst-env instead, which seems to work just as
> well, if not better.
>
> I'd like to make an amendment to the relevant docs, but would welcome
> some info on why it was originally written this way, maybe there are use
> cases I'm missing.

I agree that it's bad advice, since it assumes the only reason to use
Guile is to hack on Guix. I also think it's not necessary, since
‘.dir-locals.el’ in the Guix root should be taking care of this for you
already. I don't use the manual addition to ‘load-path’ you quote above,
and Geiser seems to work fine (within the bounds of Geiser's definition
of “fine”, anyway).

The downside of using dir-locals is that Emacs yells quite loudly about
unsafe variables being set. Another option may be direnv or bufenv? I
haven't tried them myself, but have heard good things.

-bjc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]