From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Emacs in multiple profiles Date: Fri, 18 Oct 2019 10:42:05 +0200 Message-ID: <87o8yela1u.fsf@ambrevar.xyz> 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: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40886) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLNps-0001qq-3p for help-guix@gnu.org; Fri, 18 Oct 2019 04:42:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLNpq-0006tg-JO for help-guix@gnu.org; Fri, 18 Oct 2019 04:42:11 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:45543) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLNpq-0006se-9N for help-guix@gnu.org; Fri, 18 Oct 2019 04:42:10 -0400 In-Reply-To: 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: George Clemmer Cc: Alex Kost , help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi George, thanks for you input.=20 > I think the default emacs behavior reflects tje concept of emacs and > emacs-guix as "uber-all": E.g., Installing them in the default profile > ~/.guix-profile/ allows a power user to do anything. > > But, if you want to work in separate, independent project profiles each > with their own manifest, profile, and custom configs, it isn't obvious > what to do. I believe it is straightforward, as for other programs with non-default multiple profiles: if the etc/profile is sourced, behave as if it were the default. > E.g., Where is the .emacs file? I'm not sure that's related, .emacs is in the user's home. > Which profile do you get > when you run a shell? Which shell? > How do you run a version of emacs or an emacs > package other than the one installed in the default ~/.guix-profile/? The `emacs' you run is the last one in your PATH. This is defined by the load-order of the profiles, as for any program. This is not Emacs-spec= ific. > Which .emacs.d/ gets used? As above, this is the user's file, this is related to the Guix profile. >> 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? > > FWIW, I can report on how I have happily used separate, independent > guix/emacs "project" configs for over a year. I believe we are talking about slightly different things. Every user is free to write their custom scripts and Emacs config to suit their needs. The problem I'm trying to address here is that of the default behaviour of non-default profiles (actually: profiles in general). With zero-config, zero-script. I believe Emacs should behave like the rest, i.e. load the packages of all active profiles. Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl2pet0ACgkQm9z0l6S7 zH++mggAhX5mRHP3KWtEAV4t/cozzCOB2HCJWXuD7+AOJ3rGnESWkbzgjYj11Htg V4tYNnPcau597FKsKSxefvg/5XdTBWrLA90V0Kfhb8pUBdEzrtn6IicgugyDNLE5 N6gVoBWHyyj9Yo0xA0B2f6c7PM1to/knYMsDIUbpaPynSiOTnPqklSHZXqIeqOAy oOQ2wgmYkU08LE5PIVV5IoCs7V1W+GJSHV5ImWdbxqnSDeM3Zj7pckXk8IsN0ehL 1F8zDsrdiA747Zyz44X9N+dDs7kicqHrkNwVDimLZjM2SGlsWWy2hWWVzcJxJ5xQ OJbaDhivncPEYgACvCXB7Rb48LVqtg== =UUqK -----END PGP SIGNATURE----- --=-=-=--