From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs in multiple profiles Date: Fri, 23 Mar 2018 20:25:25 +0300 Message-ID: <87a7uyd7qy.fsf@gmail.com> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezQRU-0002zh-F5 for help-guix@gnu.org; Fri, 23 Mar 2018 13:25:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezQRR-0002JI-Ll for help-guix@gnu.org; Fri, 23 Mar 2018 13:25:28 -0400 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:33411) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezQRR-0002Hg-Dr for help-guix@gnu.org; Fri, 23 Mar 2018 13:25:25 -0400 Received: by mail-lf0-x236.google.com with SMTP id x205-v6so19411781lfa.0 for ; Fri, 23 Mar 2018 10:25:25 -0700 (PDT) In-Reply-To: (Konrad Hinsen's message of "Fri, 23 Mar 2018 08:57:08 +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-23 08:57 +0100) wrote: > Hi Alex, > > Alex Kost writes: > >>> 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 > > Right, but that's not very different from -Q: It is completely different: with "-Q", your .emacs file is not loaded at all, and with "--no-site-file", only the emacs packages from the guix profile are not autoloaded. Isn't that what you wanted? > I get no start-site at all > and thus none of the Guix-installed packages. What I am looking for is a > way to get the packages that I put into the profile from which I started > Emacs. > > I suspect that this could only be done via some environment variable, > analogous $PATH and others. Emacs doesn't consult any such variable, and > it seems that Guix didn't introduce one either. At least I didn't find > any. If you want to autoload emacs packages from a guix environment (or similarly from any non-standard guix profile), you can do it like this: (let ((guix-env (getenv "GUIX_ENVIRONMENT"))) (when (and guix-env (require 'guix-emacs nil t)) (guix-emacs-autoload-packages guix-env))) > Is this a decision made for a good reason, or just something "to be > done"? Sorry, I don't understand your use case (I think I just didn't read your message carefully enough), but if you think there is something to be done, please tell. -- Alex