From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs in multiple profiles Date: Fri, 23 Mar 2018 00:21:32 +0300 Message-ID: <878tajzu03.fsf@gmail.com> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ez7eR-0008VQ-Gf for help-guix@gnu.org; Thu, 22 Mar 2018 17:21:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ez7eO-0005XU-D2 for help-guix@gnu.org; Thu, 22 Mar 2018 17:21:35 -0400 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:38549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ez7eO-0005X4-4K for help-guix@gnu.org; Thu, 22 Mar 2018 17:21:32 -0400 Received: by mail-lf0-x22f.google.com with SMTP id y2-v6so15333283lfc.5 for ; Thu, 22 Mar 2018 14:21:31 -0700 (PDT) In-Reply-To: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> (Konrad Hinsen's message of "Thu, 22 Mar 2018 17:47:25 +0100") 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: Konrad Hinsen Cc: help-guix@gnu.org Konrad Hinsen (2018-03-22 17:47 +0100) wrote: > Dear Guixers, > > Is anyone aware of a way to have different Emacs configurations > (i.e. different add-on packages) in distinct profiles? > > I tried to set up a new profile with just "emacs" in it, but when I run > that Emacs it load all the Emacs Lisp packages from my main profile. I > traced this down to site-start.el loading guix-emacs.el, which has the > main profile hard-coded and therefore loads all the packages from there: > > (defvar guix-user-profile (expand-file-name "~/.guix-profile")) > > Since nothing runs before site-start.el, I don't see how I could > override this definition. My only choice is to use the -Q option on the > Emacs command line to bypass site-start.el altogether. But then I don't > get the packages from my new profile either. It's not the only choice. You can also use "--no-site-file". It is also mentioned at: https://www.gnu.org/software/guix/manual/html_node/Application-Setup.html#Emacs-Packages -- Alex