help-guix
[Top][All Lists]
Advanced

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

Re: Activate multiple profiles inside emacs


From: Maxim Cournoyer
Subject: Re: Activate multiple profiles inside emacs
Date: Wed, 16 Mar 2022 11:00:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hi Reza,

Reza Housseini <reza.housseini@gmail.com> 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

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