From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs in multiple profiles Date: Sun, 20 Oct 2019 16:58:06 +0300 Message-ID: <87eez7o6xd.fsf@gmail.com> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47993) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMBin-0007Qz-0X for help-guix@gnu.org; Sun, 20 Oct 2019 09:58:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMBik-0002Ng-RH for help-guix@gnu.org; Sun, 20 Oct 2019 09:58:12 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:44508) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMBik-0002NS-I2 for help-guix@gnu.org; Sun, 20 Oct 2019 09:58:10 -0400 Received: by mail-lj1-x232.google.com with SMTP id m13so10554480ljj.11 for ; Sun, 20 Oct 2019 06:58:10 -0700 (PDT) In-Reply-To: <87tv88ihzc.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Wed, 16 Oct 2019 21:54:31 +0200") 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: Pierre Neidhardt Cc: myglc2@gmail.com, help-guix@gnu.org Pierre Neidhardt (2019-10-16 21:54 +0200) wrote: > Hi! > > I'm resurrecting this since I got bitten by this today. > > I'm currently writing a blog article on profiles and manifest, and I > realized that Emacs is the only program so far that does not behave > consistently with the rest of Guix. > > When I source the etc/profile where I've installed my Emacs packages, > I'd expect the appropriate environment variables to be set so that > `guix-emacs-autoload-packages' knows where to load the packages from. > > I believe the solution to be simple: > > 1. Make Emacs packages set XDG_DATA_DIRS in etc/profile > 2. guix-emacs.el: Remove guix-user-profile > 3. guix-emacs.el: Set profiles to all the paths in XDG_DATA_DIRS in the > guix-emacs-autoload-packages function. > > Thoughts? Hello, I'm not sure if my answer was expected, so just in case: Please do whatever looks appropriate to you :-) -- Alex