From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Emacs in multiple profiles Date: Wed, 16 Oct 2019 21:54:31 +0200 Message-ID: <87tv88ihzc.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> 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]:36865) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKpNV-0001aU-FH for help-guix@gnu.org; Wed, 16 Oct 2019 15:54:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKpNU-0003vP-0a for help-guix@gnu.org; Wed, 16 Oct 2019 15:54:37 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:51427) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iKpNT-0003t5-QK for help-guix@gnu.org; Wed, 16 Oct 2019 15:54:35 -0400 In-Reply-To: <877ep4z44b.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: myglc2@gmail.com, Alex Kost Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl2ndXcACgkQm9z0l6S7 zH/KUAgAi8bnyw3E8NcZwDlgxXK8XDwbEK3lpCO8rCtmvh2CeCNLS/YHlmc/zne4 j2/HHkuYQcMY3+6phSZJkMAfcDP6FA+Z/eI8wVXXNqVQj4YjWlaL9KEqU+VliU/p 7+e1k+exlGRhpT8lqhDqSml0HgQkZaoBMrSyZTc2baClYl6c6ZQmnuI7kbVFVOV7 9UbdIJnCQxB7479RhrgeIdx4gmWx5SttcyX3e3kqSpOX77wKK62Mq4nCDJ7zdseG abSRi0jvOoktA8PFMJs57yOiw4GUW8eNt9NmPWJZ+Nz9MhkbDzc+vU8/Azp9qyg1 dLAaUzLvcz7O8oTC2prQc6hNbQPdxQ== =jYRD -----END PGP SIGNATURE----- --=-=-=--