From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Gibbons Subject: spacemacs doesn't have the correct PATH when I change HOME Date: Mon, 23 Sep 2019 16:44:12 -0600 Message-ID: <694948462831acaf11c63b9e146710d8bbeef8ef.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33163) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCX46-0002UQ-Ay for help-guix@gnu.org; Mon, 23 Sep 2019 18:44:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCX45-0008QR-As for help-guix@gnu.org; Mon, 23 Sep 2019 18:44:18 -0400 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:33402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCX44-0008Po-4B for help-guix@gnu.org; Mon, 23 Sep 2019 18:44:17 -0400 Received: by mail-io1-xd33.google.com with SMTP id z19so15435839ior.0 for ; Mon, 23 Sep 2019 15:44:16 -0700 (PDT) Received: from piranhaplant.local ([157.201.96.100]) by smtp.googlemail.com with ESMTPSA id m9sm983ion.65.2019.09.23.15.44.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2019 15:44:14 -0700 (PDT) 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: help-guix mailing list 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) Thanks, -Jesse