Hi Reza,

Reza Housseini <[email protected]> writes:

> Hi Guix
>
> Say I have several projects each with their specific profile
> containing the needed dependencies and a profile for all my Emacs
> specific stuff.
>
> Now I want to work on a projects inside Emacs and make therefore a
> union of the project specific profile and my Emacs profile. So as for
> example pylint does not complain about missing modules inside my
> project source code.
>
> As I understand I could source my needed profile files in a shell and
> then start Emacs from there, but this makes it quite cumbersome to 
> switch projects as I have to restart Emacs every time.
>
> Is there a possibility to achieve the same while Emacs keeps running?
>
> How do you guixers handle this scenario? Or is there an obvious
> solution to my needs?

Typically, I keep a manifest.scm per project, then create the
environment with 'guix shell', retrieve the profile link with 'echo
$GUIX_ENVIRONMENT' within that environment, which I then pass to the
'guix-set-emacs-environment' Emacs procedure, which is provided by the
'emacs-guix' package.

Clunky, but it works for me.

Hope that helps,

Maxim

Reply via email to