From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Bauer Subject: Re: spacemacs doesn't have the correct PATH when I change HOME Date: Tue, 24 Sep 2019 08:09:37 -0500 Message-ID: <20190924130937.GB20354@serpent> References: <694948462831acaf11c63b9e146710d8bbeef8ef.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55535) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCkZb-0006bO-RV for help-guix@gnu.org; Tue, 24 Sep 2019 09:09:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCkZa-0001hQ-GZ for help-guix@gnu.org; Tue, 24 Sep 2019 09:09:43 -0400 Received: from mail-yw1-xc34.google.com ([2607:f8b0:4864:20::c34]:43992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCkZa-0001gk-Av for help-guix@gnu.org; Tue, 24 Sep 2019 09:09:42 -0400 Received: by mail-yw1-xc34.google.com with SMTP id q7so588351ywe.10 for ; Tue, 24 Sep 2019 06:09:41 -0700 (PDT) Content-Disposition: inline In-Reply-To: <694948462831acaf11c63b9e146710d8bbeef8ef.camel@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Jesse Gibbons Cc: help-guix mailing list On Mon, Sep 23, 2019 at 04:44:12PM -0600, Jesse Gibbons wrote: > I need spacemacs for a class, but I want to keep my emacs settings, so I > setup a script as described in the FAQ to separate emacs from spacemacs. The > script sets HOME to $HOME/spacemacs and calls emacs. It appears that guix > recalculates PATH when I call the script, so it cannot packages like git in > my profile. > I have identified three possible solutions, but I need a little information > to accomplish each: > 1. Is there a way to preserve my profile in the PATH environment variable? I > tried $HOME/spacemacs/.bashrc but it isn't called. (solution 0) > 2. Is there a way to setup a local profile in $HOME/spacemacs so emacs will > be able to locate the packages it needs? (solution 1) > 3. How hard would it be to define a spacemacs package with the binary > renamed "spacemacs" so I won't have to use the script? (solution 2) Jesse: I'm using spacemacs with guix, but not dual emacs/spacemacs. Some resources (which you may have already encountered): https://www.reddit.com/r/spacemacs/comments/88poow/how_can_i_run_spacemacs_and_emacs_side_by_side/ (ihsec = I hate switching emacs environments) https://github.com/daedreth/ihsec I don't think your 3rd approach makes sense, as spacemacs is just emacs with a different configuration. -Jeff