From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6MR3DR9r219DBQAA0tVLHw (envelope-from ) for ; Thu, 17 Dec 2020 14:28:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ENQ/CR9r21/meAAAB5/wlQ (envelope-from ) for ; Thu, 17 Dec 2020 14:28:47 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EE5A39402A9 for ; Thu, 17 Dec 2020 14:28:46 +0000 (UTC) Received: from localhost ([::1]:37236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpuGr-000375-Ue for larch@yhetil.org; Thu, 17 Dec 2020 09:28:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpuGi-00036y-5P for guix-devel@gnu.org; Thu, 17 Dec 2020 09:28:36 -0500 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:45296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpuGg-0004uY-Ki; Thu, 17 Dec 2020 09:28:35 -0500 Received: by mail-ed1-x52e.google.com with SMTP id r5so28800897eda.12; Thu, 17 Dec 2020 06:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=rMau7rSWj/vYuHrpUjri9zOnnEu5zSZoOiKUNtLk5QE=; b=JjHGTRsMFaE+64UBtEwwl/GNQWKdqX5NlYhAMRhNfQ0nC+24d91jxtbwg7Svs/xwog v/rHDvp4QTfnQ2bCywmr1Q3zfHNONPlpTcjgZ4t0l2rkaXR8wJ034ZuqCkfC23k3KtRW rfyetCSw9BzAAuOC22M0bLvpDwWms18OPufm32QcgddCAN1VuQvXXsLRfIKOzMrENP+a nc29a6zNXeJg37yjQwVk+J+WWyGERoKC3C87TBbtB2aVCkf56ydaODtcAvWnLsHABC0c jzD8GDN+vdOAhqYrhbFHh09AcLS9xl3l/s2FhX5nNA0u12SMaQs6jZcaTYRXM4e0ttAr MmbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=rMau7rSWj/vYuHrpUjri9zOnnEu5zSZoOiKUNtLk5QE=; b=BDt1yfZwyA9bTn8CvF5se4Pt0ETQD25qtf3a5LlJcNymomPblH3yTgx1r/G7YzsSTQ IliYIFOWAsYNnjZkKPiBCRSU2jgly1nBxXbjmD9NyDBAGBeVGYaorU+pBx5uRrhfjCQe D3Zec8OdmlZKYvYz9hvvsh8tH8jSO65e0hNnHBpHf8+5UmTJQsAiCUrYWxnpTt0f+M7s iE0SlBxSyOX2N4v1x/YxuvrEQ6j0GURtkQgsdW2A5Swn+lh7VOi5fFceLv6GFSYTQOKO JZnU8QmMBUMjjoXf8JIUQseIQI46yhNrMsWYUrhZ/dgxkdc19P91oNwHDZGXu9TVvyUM AcFg== X-Gm-Message-State: AOAM531eh1rWczbYbKAQeE3sKyPocrdptqTWX873NYile+7cEZANDdgg CJ3Uq/rvPtllwuTYtExtE9o9WKH2r0cNQFkj X-Google-Smtp-Source: ABdhPJz/98Zy0jRSZfIEtW4ngKuWIBgff/LGG88nx9kaXBeaa/FKvKkCK9BqIUrK0bQ4KSyksodtNg== X-Received: by 2002:aa7:cf85:: with SMTP id z5mr24449472edx.274.1608215312232; Thu, 17 Dec 2020 06:28:32 -0800 (PST) Received: from localhost (145-130-182-109.fixed.kpn.net. [145.130.182.109]) by smtp.gmail.com with ESMTPSA id p22sm3862042ejx.59.2020.12.17.06.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 06:28:31 -0800 (PST) References: <874kklyqmt.fsf@gmail.com> <87o8is6aly.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: pinoaffe To: Jan Nieuwenhuizen Subject: Re: Some emacs stuff to activate/deactivate guix profiles In-reply-to: <87o8is6aly.fsf@gnu.org> Message-ID: <8736048q29.fsf@gmail.com> Date: Thu, 17 Dec 2020 15:28:30 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=pinoaffe@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JjHGTRsM; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: EE5A39402A9 X-Spam-Score: -3.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: DT6mS+VVdor+ Jan Nieuwenhuizen writes: > My emacs-guix already has a file called guix-profiles.el; how do you > handle that oops, I think I'll rename this script then :) > or how do I best look at / try your profiles? I think the easiest way to try this is to source the guix-profiles file, set the three "defcustom" variables, and to then run guix-enable-profile or guix-disable-profile interactively. > This looks interesting; I'm using M-x guix-set-emacs-environment a > lot but my biggest problem/gripe with that is that it's global. Yeah this is also global, as far as I can tell the only difference with guix-set-emacs-environment seems to be that this allows enabling several profiles at the same time and that this script maintains a list of which profiles should be active. I think I'll take a look at how this could be integrated into emacs-guix. As to non-global things: I think a way to open a shell in emacs with a specific set of packages available would be nice, but I'm not sure whether it'd be better to wrap `guix environment` or to implement something that starts a subprocess with the environment variables corresponding to a (set of) profile(s). When implemented correctly, this could also be applied through per-project profiles when combined with a project manager such as projectile. Blessings, pinoaffe