From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Re: Emacs in multiple profiles Date: Sat, 24 Mar 2018 13:14:12 +0100 Message-ID: References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eznt1-0004Tq-DQ for help-guix@gnu.org; Sat, 24 Mar 2018 14:32:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezncg-00024d-NJ for help-guix@gnu.org; Sat, 24 Mar 2018 14:14:56 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41701) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ezi3p-0005Ak-AM for help-guix@gnu.org; Sat, 24 Mar 2018 08:14:13 -0400 In-Reply-To: <87a7uyd7qy.fsf@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: Alex Kost Cc: help-guix@gnu.org Alex Kost writes: > 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? Not quite: I want it to autoload the packages from my current Guix profile, not from my main Guix profile. > 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))) Except that GUIX_ENVIRONMENT is defined only by "guix environment", not by profiles. Otherwise this would be exactly what I want - and in fact what I'd expect guix-emacs.el to do, instead of accessing the user's main profile. Konrad.