From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uOT7IE7IKGWutAAAauVa8A:P1 (envelope-from ) for ; Fri, 13 Oct 2023 06:32:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uOT7IE7IKGWutAAAauVa8A (envelope-from ) for ; Fri, 13 Oct 2023 06:32:14 +0200 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 3767B59D36 for ; Fri, 13 Oct 2023 06:32:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AmH71Rp3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697171534; a=rsa-sha256; cv=none; b=qF3XDWElaTQ+9KNM38WJ6YHEYKYHZANY4mV9uIDnvJneUr+lI2YgZg9wliGQmAPyqg+ziZ 1248bw5+6D6tzImL+Awi2a4GW58EMTx/EAkfUeruPfQ+bULTKQHywlmGD7Q4OpfZQ0RypG 6uXRhStleXu28/U52M59EiMZCIVGJn0ztEwZiR1bSJjyVEz/jl1cC/yrsfN0M8zdesB93p 2NkOCrOspFJXdVVyye/BhlrdtaNgX9a7eQCRx5zznU9t4bxmV1jVLRiNvjGy0Sfadglo+f czxSoAj9FMJwABfxaZQ85YfsZwGKws1XuJ6QqXD2XvK4H7PWvOeAhQ8IKqMi9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AmH71Rp3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697171534; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=z7ttJaN1KuGIJhZh8ig/PKC9wev/9dhyqpWpb804fnc=; b=Uqnu4fXYWyKB6HoWZitoJIRC4HlQLHmaH4PFZGL1y6z9++a6l5iKnqCJb5k7kaxw/9BJYD 4yDF/KKsUt/U/gKCTWNfhegTAb8GyBzPK2tJyVg0NErx850rV5SA1Xh8Dl/uoUyeoVtfxI BRa+XjQXAONbW77KCIfOTeD/LyEYyfXALMCOhDMuLOBCTeOGz2KX/Xd78E9GePpgNQV/C+ viqFxfIS3SNrAgmT0VjA2dvUvaS2CaU9WJiThOL81cfSRrzcWEAAlOim6bb34Qkxni+LzP PFkDtA7uMg1UsWaorQokGY2rRrFvubIQ+8Gvq8N+MD7LFrMsuOgpaNivRLkcgA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qr9pt-00015k-8t; Fri, 13 Oct 2023 00:31:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qr9pr-00015A-Em for guix-patches@gnu.org; Fri, 13 Oct 2023 00:31:39 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qr9pr-00016o-6z for guix-patches@gnu.org; Fri, 13 Oct 2023 00:31:39 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qr9qD-00018F-N1 for guix-patches@gnu.org; Fri, 13 Oct 2023 00:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64620] [PATCH] gnu: home: Add home-emacs-service-type. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Oct 2023 04:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64620 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Kierin Bell , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: "\(" , cox.katherine.e+guix@gmail.com, 64620@debbugs.gnu.org, Andrew Tropin Received: via spool by 64620-submit@debbugs.gnu.org id=B64620.16971714954303 (code B ref 64620); Fri, 13 Oct 2023 04:32:01 +0000 Received: (at 64620) by debbugs.gnu.org; 13 Oct 2023 04:31:35 +0000 Received: from localhost ([127.0.0.1]:44581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qr9pn-00017L-8P for submit@debbugs.gnu.org; Fri, 13 Oct 2023 00:31:35 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:48563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qr9pj-000171-Ey for 64620@debbugs.gnu.org; Fri, 13 Oct 2023 00:31:33 -0400 Received: by mail-wm1-x343.google.com with SMTP id 5b1f17b1804b1-405417465aaso18139825e9.1 for <64620@debbugs.gnu.org>; Thu, 12 Oct 2023 21:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697171463; x=1697776263; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=z7ttJaN1KuGIJhZh8ig/PKC9wev/9dhyqpWpb804fnc=; b=AmH71Rp3CtlsQsfUyYw0moVDRVILPRzuY007KA7TfmuzaShLo05BRrFbRwKC5xdmdf H4MX++MzCnoqmnwGYU/CUjbW3eBZYnDwSjJ7SB+u+vsp/equNdzYW9CIX25TMzPLDBlU RlfoCgrVjBmzd5ep8P4tZt1sAMJouzVUmYnIjR2luT1BN412ugAOUE8nNIEU9iWFZ+pu bEUTaGa5R2CTei67hhwOtsip+BqbmvWNPDVIczvqePnp+fGlL2tw/9YEM0B2QIpZniVV 2B3fsLUGl1UxltrkRqFQIhcyaKqlNR5iy+Ky7bH82CG8fhBjBWQ627fTCgdeex+TdFxi V6Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697171463; x=1697776263; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=z7ttJaN1KuGIJhZh8ig/PKC9wev/9dhyqpWpb804fnc=; b=Rjl5SOdYLm/XX+f+J9+BuebFpyO0ck763QILfsLQLCsvCgMEMB02heXyh21yXd5SMR WWqllgx8ybVHYzJ07TqKAUxiWeztBxh6lW+hETeUZMpRAIFkvKu7y8n39o6gG7ohm8zN /gGbf+hLbCgwfD7bDFAUbtftF1CnxJpcg8foni6oP8IIKROyzQ+gP9JKqxfDZ5uvzDf8 7rPwfhD4uvlN1twUQDMJFVq3DDt2rzlZ7ezwo6l+oQyQban+xywwgR3c4Q5A0Fjho8eS M5O9EsT9QZZ2R2iCGBiJ1wN8PXm8JRWd0pJ2su/4Y16jQg0PZ4u/BYlawcxV7jepY4Jx te6Q== X-Gm-Message-State: AOJu0YzSXNaTKzIfU2CHxCz1GfznrJHUDc1ciVrjve78s74LYy1kiVQh UmLSbsEM86livqZzHxlO2R0= X-Google-Smtp-Source: AGHT+IHp8uobon7I0pI0kn6X3Zpk8UHqCiMfWAmjuG8CEyWZ+xuk4XAnNaXs7LyFMDoonX9p9HvhEA== X-Received: by 2002:a05:6000:1b07:b0:31f:ec91:39a3 with SMTP id f7-20020a0560001b0700b0031fec9139a3mr22226567wrz.30.1697171462519; Thu, 12 Oct 2023 21:31:02 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id q14-20020adfcb8e000000b003296b488961sm19130646wrh.31.2023.10.12.21.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 21:31:01 -0700 (PDT) Message-ID: <0dc55cac713686514f90ec04243f710894451a82.camel@gmail.com> From: Liliana Marie Prikler Date: Fri, 13 Oct 2023 06:30:59 +0200 In-Reply-To: <8734yf4he4.fsf@fernseed.me> References: <0173e076aafb6ec389a7ebca5d56b7f4e8a02b6e.1689347338.git.fernseed@fernseed.me> <87il945gzu.fsf@disroot.org> <874jklyk38.fsf@fernseed.me> <873503hebs.fsf@disroot.org> <87y1huvluu.fsf@fernseed.me> <87o7iqpeou.fsf@disroot.org> <87a5spuoc5.fsf@gnu.org> <8734yf4he4.fsf@fernseed.me> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 5.79 X-Spam-Score: 5.79 X-Migadu-Queue-Id: 3767B59D36 X-TUID: gAd2HqDIpZDf Hi, Kierin Am Donnerstag, dem 12.10.2023 um 18:15 -0400 schrieb Kierin Bell: > [=E2=80=A6] > The benefits are maintainability and usability --- users who don't > want to use the package configuration interface don't have to deal > with the cognitive dissonance. >=20 > The downside is that Emacs package configuration becomes more > cumbersome for more advanced use cases. >=20 > One case, illustrated above, is that the > `home-emacs-packages-service-type' doesn't know the Emacs version > used by the `home-emacs-service-type' --- a non-default version of > Emacs must be specified again, separately, for the packages service > (that is, if it matters that the package serializer knows the Emacs > version). >=20 > Another case is that in order to configure Emacs packages for > specific Emacs servers (created via the `servers' field of the > `home-emacs-configuration'), there would either need to be a > `servers' field in the `home-emacs-packages-configuration' record > type (complicated to implement) or users would need to do this > manually (with the help of a new function such as `emacs-server-with- > packages'). >=20 > I'd appreciate hearing preferences or arguments for or against > either. Also, suggestions for simplifying any part of the interface > are welcome! I think you should separate your concerns more clearly. Rather than having home-emacs-service-type take packages and all that other fluff, you could just have init-directory as a list of file-likes. Then you can have an init.el-file procedure (or syntax) to take care of packages. e.g. (home-emacs-configuration (emacs %my-custom-emacs) (init-directory (list (init.el-file (emacs-package =E2=80=A6) (elisp* =E2=80=A6) =E2= =80=A6)))) Now, admittedly, snarfing guix packages out of init.el-file might become an issue; I haven't thought about how to implement that concretely. The upside is, that you could reuse this structure for servers. An emacs-server would just take another home-emacs-configuration and a server name. Cheers