From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8H/gGPj8MWLkmwAAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 16:06:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yF1aFvj8MWJbMQAA9RJhRA (envelope-from ) for ; Wed, 16 Mar 2022 16:06:32 +0100 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 1178C3B48C for ; Wed, 16 Mar 2022 16:06:32 +0100 (CET) Received: from localhost ([::1]:53686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUVEM-0008MF-VF for larch@yhetil.org; Wed, 16 Mar 2022 11:06:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUV91-00047V-VG for help-guix@gnu.org; Wed, 16 Mar 2022 11:00:59 -0400 Received: from [2607:f8b0:4864:20::f36] (port=43986 helo=mail-qv1-xf36.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUV90-0004aD-C9 for help-guix@gnu.org; Wed, 16 Mar 2022 11:00:59 -0400 Received: by mail-qv1-xf36.google.com with SMTP id kl20so1998490qvb.10 for ; Wed, 16 Mar 2022 08:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pdPI1xr7fED5qlZ5otjI4YBugimMZTbjLaAMoEfKtME=; b=iKU03I2PyUNZWbT8L4qva6a4k776CSvUO7wbkxkeESGvNIJpCrZ2ygSH6VBftLjg5q gFFaW1V4O9CinpXKwtSzxnbJEbJJtxAw1K4MoxVWPiYhmVh03ilY0nRqobFW58htG6oK 0KuDqnzPgVRh9FHC0yBH/XUZsIIxXp85zofk1/Zu1AxlJOcRAI+BiQNWxt0+aHNWuxHi 1rP2yGQCVhenA/MoVlHSwi5zCbTGQeTo8Ezsb10uWihbbOKMvTf6Rlh9nu/ue241e9qH qMnQWgH4D5EFI9j3ld+cCfC1Kr7O0Ff0JlgcNqaynZyZBtk0WemLmRihaetisqL+hvzB nCdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pdPI1xr7fED5qlZ5otjI4YBugimMZTbjLaAMoEfKtME=; b=NuY1GxuQmacOG3ICdzIpQWb4bDBZpjtMEPUefvTG+2dUz42AbCIUpSP/pPbIzjwSVN lTTw6BjYY4I+j34OpEnpu7yEU8qEAfoUD0SWUENq28VCPbwhBGvFzeBoXHkFMgWPhvuI bN91Yn8LYtgwOfI2KgGg7KojLYWjJa6vfT47PUJNCx0NKcwspDlsvatHNNf4fp6WkGnO zPGpbQhS2hvel/f9KLDKAVC1xTbkx2iNS5BV3pujhGk6+J7SKiENOSgmGsGagekfl6g7 XKC6gLoZ9QD1Qj9rZTfHohdCs0K2vvVnY3bDuz943s4ihhhZVOwlZvvYko/IsLTw+qTs Sd3A== X-Gm-Message-State: AOAM5332j7azFsZ8ib1j+xKINkmi5RvkEfV1m1ixiUvprw+5tH74/Deh FL4Z1xbmI8iiixB/yAxnm3tiqr/NVAo= X-Google-Smtp-Source: ABdhPJzdSkO95SlH/54lOOim25jS/1+UST+SezqK67ihLGIPIkgh4HD3GrYjKKI+jKBxPnerA8w4tw== X-Received: by 2002:a05:6214:2526:b0:435:8969:57ef with SMTP id gg6-20020a056214252600b00435896957efmr218872qvb.108.1647442857311; Wed, 16 Mar 2022 08:00:57 -0700 (PDT) Received: from hurd (dsl-10-131-58.b2b2c.ca. [72.10.131.58]) by smtp.gmail.com with ESMTPSA id r12-20020a05620a03cc00b0067d370e414esm980480qkm.15.2022.03.16.08.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 08:00:56 -0700 (PDT) From: Maxim Cournoyer To: Reza Housseini Subject: Re: Activate multiple profiles inside emacs References: <60d23adb-8515-7942-6520-229dcbff0bf4@gmail.com> Date: Wed, 16 Mar 2022 11:00:56 -0400 In-Reply-To: <60d23adb-8515-7942-6520-229dcbff0bf4@gmail.com> (Reza Housseini's message of "Tue, 8 Mar 2022 16:02:32 +0100") Message-ID: <87fsniaqmv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f36 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf36.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647443192; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pdPI1xr7fED5qlZ5otjI4YBugimMZTbjLaAMoEfKtME=; b=RTfX0vVsZXuKfLfPcR2IQAZhT7Rw0DNjTChjphCpOv4CFQbwoELoMYtZdG8y6rVSymCcBq Hywn2NVfBPfYjOftC4NoEuv+uay/0rzLUaYN5kZ12uXKJKBYAHK1/P10egfHWa5wa5tZYX 7fqxtNnIRyE7z2/EgsUYeAAFMLWtkgPcpYqsPNJb8PD5EO4qWJdN0sRzVRnIF4LIFGadeW rCWDwPx1ySRhLCsLVrwxG+nua9ml4nNpLUwZAaiwwhy51LX/hy9CEoNUWblqV9TfNULrfc kFpvKZ61kN7avV9DS2kwLKiAh2mZZKA8uTJNEPrNMuZ4XsZ0ZDpcGb+U/KhVgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647443192; a=rsa-sha256; cv=none; b=mHOoJ3LntVzsEbfIsY9XfjAp744s9Wjqd38lLVnPSSMbAorDoN+dkHohrUdUspAeRKwhM+ 5ZrxkxO108oE7vNa+HZ0IqciaRylXE5H1Ej+Ila5JrVtWs5B+i9ltZT/Xt7/11H6F0DJVt F+dt0H/hm7+k4sN21cBaWnSgzkLRd+gLQ9P0vicoaJfuU6bk2aFxeH2cLdt01j35HHMhVK Eyv20kBn7ZYhMoXMjl0AePZJYGOsZTa10oIHXFQ2QBxMYoZDo1t6WyTvXCJokSNC2BCMqB o/ZeVTKJjiZU+JTIaRiobUC5mJ6rcObK6jfQnWjgTLTU7gwyBCv4LvppPnLZQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iKU03I2P; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iKU03I2P; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1178C3B48C X-Spam-Score: -4.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: k6fMg0iSoKTm Hi Reza, Reza Housseini writes: > Hi Guix > > Say I have several projects each with their specific profile > containing the needed dependencies and a profile for all my Emacs > specific stuff. > > Now I want to work on a projects inside Emacs and make therefore a > union of the project specific profile and my Emacs profile. So as for > example pylint does not complain about missing modules inside my > project source code. > > As I understand I could source my needed profile files in a shell and > then start Emacs from there, but this makes it quite cumbersome to > switch projects as I have to restart Emacs every time. > > Is there a possibility to achieve the same while Emacs keeps running? > > How do you guixers handle this scenario? Or is there an obvious > solution to my needs? Typically, I keep a manifest.scm per project, then create the environment with 'guix shell', retrieve the profile link with 'echo $GUIX_ENVIRONMENT' within that environment, which I then pass to the 'guix-set-emacs-environment' Emacs procedure, which is provided by the 'emacs-guix' package. Clunky, but it works for me. Hope that helps, Maxim