From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 11ziLccX21+kCAAA0tVLHw (envelope-from ) for ; Thu, 17 Dec 2020 08:33:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CIRPKccX21/LQAAA1q6Kng (envelope-from ) for ; Thu, 17 Dec 2020 08:33:11 +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 B667E940355 for ; Thu, 17 Dec 2020 08:33:07 +0000 (UTC) Received: from localhost ([::1]:38676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpoig-0007Bc-F3 for larch@yhetil.org; Thu, 17 Dec 2020 03:33:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpohn-0007AJ-AQ for guix-devel@gnu.org; Thu, 17 Dec 2020 03:32:13 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:38126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpohf-0000cW-5w for guix-devel@gnu.org; Thu, 17 Dec 2020 03:32:10 -0500 Received: by mail-wr1-x430.google.com with SMTP id r7so25679615wrc.5 for ; Thu, 17 Dec 2020 00:31:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=DR7/5y+UyiQAFOcpENaBZulal8WDYBPXi75+DMgC4Q8=; b=rcVlULurgfGFlWOeAQUjvgAMN6wBBMIKFmEyObzYacBnFiAxEuV34PzUMgogbl9g4e UkeD66ERknw5x20v6eiEhNCwmoRlROn4FQtoO4qdVNn0g/Gw+JCYW1odI14JKTy29Nnw UACwC8XjXJfJTqCPiHtgiM4yWeVJtbsvMPX8xyvo0EePYhwRYf9gH2rGT33q9SvsNPpr lf3696WnSSX1NMGGo2GPJYW4IwQa8zIXqMdI/FB4KWa5FJABK8Rzg06U3nF9FpEvqmYX hV+7XzmupB2V8ldR1zO28MSStgqRhd0ztX1yeoW6fMqiKWNQM4n0VvL0lQVriWnt7r9/ Bc8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=DR7/5y+UyiQAFOcpENaBZulal8WDYBPXi75+DMgC4Q8=; b=iXQHnr0ioPgK3PwzOC5xCTzwXMBaAj378lH3+iw1ix829mzP1Aw+rrNdXk7+JG2Ecl ZWFg55fUGG6R8tSU+zmuAsyZvmyN01ww5bm2+Hxs101DgK/M5+KlorbT/yZfefIVbfIX bKCycaTjYES0LaQdYY9hA/JPCLeu40ZmNSTKV50kc9Laty5x6rUUVoNqFEQKZgeDgZs1 gj3QkgHzPpmcM4YmxHgl9DAZgZn70AZmFFYQr9iSQyfLZO1e60bbZpICXscixR+kCRs/ kaqjXNi9Kh9DlcKVioXZYXgsqXeEVXv+wQ2VnLoiy26H4etXxwGzXEHPN4hMO9ong5mW 3VCA== X-Gm-Message-State: AOAM533+kdsZSg6Z6zvpziPiZlyvDTVJc5nNo0g3cJsNtbL7iU68fDtJ F0iNrIbHqrK+/oH5syaXR5zXVOelKXeABE9aIwrTcPFj0n8= X-Google-Smtp-Source: ABdhPJyXkV6raBSZewHcG3dXmpzBbcnu4xI3COPRoCHy/mYQKqxil4fiIxfUZa2P8mMoYKl5rRUeiyoC6wtwsBvf4gE= X-Received: by 2002:a5d:674b:: with SMTP id l11mr24191167wrw.247.1608193919108; Thu, 17 Dec 2020 00:31:59 -0800 (PST) MIME-Version: 1.0 References: <877dphyqn2.fsf@gmail.com> In-Reply-To: <877dphyqn2.fsf@gmail.com> From: pinoaffe Date: Thu, 17 Dec 2020 08:31:47 +0000 Message-ID: Subject: Re: Some emacs stuff to activate/deactivate guix profiles To: guix-devel@gnu.org Content-Type: multipart/alternative; boundary="000000000000474a7405b6a4d341" Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=pinoaffe@gmail.com; helo=mail-wr1-x430.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=rcVlULur; 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: B667E940355 X-Spam-Score: -1.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: O1dOmNU+nQdW --000000000000474a7405b6a4d341 Content-Type: text/plain; charset="UTF-8" Hi everybody, sorry for the repeated messages, something went wrong with mu4e On Thu, Dec 17, 2020 at 4:59 AM pinoaffe wrote: > Hi guix! > > I wrote some elisp that > * maintains a list of available guix profiles > * maintains a list of active guix profiles > * allows the user to modify both of those lists > * provides interactive commands that allow the user to (de)activate > profiles > * sets env variables and the emacs search path based on active profiles > I may add the ability to "update" a profile from a manifest. > > This allows me to have a profile with, say, reverse engineering tools, > and to (de)activate it whenever I do(nt) need those tools. > > Please not that I'm fairly new to all of this emacs stuff, so it may not > be idiomatic or good code. > > I've attached the reusable stuff in guix-profiles.el, and my personal > config in init-profiles.el. > > Any thoughts? > > Blessings, > pinoaffe > > --000000000000474a7405b6a4d341 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi everybody, sorry for the repeated messages, something w= ent wrong with mu4e

On Thu, Dec 17, 2020 at 4:59 AM pinoaffe <pinoaffe@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">Hi guix!

I wrote some elisp that
* maintains a list of available guix profiles
* maintains a list of active guix profiles
* allows the user to modify both of those lists
* provides interactive commands that allow the user to (de)activate profile= s
* sets env variables and the emacs search path based on active profiles
I may add the ability to "update" a profile from a manifest.

This allows me to have a profile with, say, reverse engineering tools,
and to (de)activate it whenever I do(nt) need those tools.

Please not that I'm fairly new to all of this emacs stuff, so it may no= t
be idiomatic or good code.

I've attached the reusable stuff in guix-profiles.el, and my personal config in init-profiles.el.

Any thoughts?

Blessings,
pinoaffe

--000000000000474a7405b6a4d341--