From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cOdBIKx552RRdQAASxT56A (envelope-from ) for ; Thu, 24 Aug 2023 17:39:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wLtUIKx552TBCgEA9RJhRA (envelope-from ) for ; Thu, 24 Aug 2023 17:39:24 +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 61D563AF21 for ; Thu, 24 Aug 2023 17:39:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fernseed.me header.s=gm1 header.b=CSEU3noS; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fernseed.me (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692891564; 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: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=3toaC3x/OFxQCpYyasdgsMo/LUkRfDYiYtM7YPn2sqE=; b=pLcS5VZtIat0BDL7pT2aFBByzr/uiU/7utmd7xcyfLQZZmCTU8S5X89lWMcgCYNQtaYmnU 5Kx/dARPv0IYFIm+HzdtdFnP3+xuHPlgAtHrEADGd27/Hlgq8SdHkP6VjReHNyZdildPAH Kj4oms+6w7U+AoQvMadAN3MLbqAJ7Zm7gjc9AjbL7mWLJVmiLcwH46I3Uc+5v88gTQUfNF 2Hhi+wa3b5E9r9tC/BicFCS19pjEP1y+IHbJWhcUeNa6yaEYSbNZsUCIHY0dXCIYROrFjF didukue3Hx25ZKDO3PpcDKCZphSyggYQgjZRmrLdPEEC3DAkkqvJzPkeYfdoIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fernseed.me header.s=gm1 header.b=CSEU3noS; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fernseed.me (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692891564; a=rsa-sha256; cv=none; b=kQhuMHJkgBPCQiYU/vcLxoIDlvE4vUr+Ddh9CEia2z3o3gHL4Datj3id8NqqyzewhGZoLU amx+4bZ3apZdbWfGYb9uJbHv0SGT+GfAq7rb2gnufWiysgFHp20bzSrTtbdyf9o84q0cOj nwwK7HTNqHWLzy7isd4Whbs8EQYgdbcYGg/f5+A9YUEugSLZksiJGy0b9oeEILERn8w3f0 +If1jJBjT6QeGGMe1BEBH+uc2+Z3p6DRgN/bEt3h7EIQnZdUUkdMtDednppiX7W6D3a031 to6oO0oKYTjdTom9GXlBN5cUTs0nQeGNQziCswkqtRKmW9QmXVkeGPbpE/olpw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZCQI-0000Mz-8Q; Thu, 24 Aug 2023 11:39:02 -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 1qZCQE-0000Mf-W1 for guix-patches@gnu.org; Thu, 24 Aug 2023 11:38:59 -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 1qZCQE-0004jZ-Nm for guix-patches@gnu.org; Thu, 24 Aug 2023 11:38:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZCQI-0001LB-Os for guix-patches@gnu.org; Thu, 24 Aug 2023 11:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64620] [PATCH] gnu: home: Add home-emacs-service-type. Resent-From: Kierin Bell Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Aug 2023 15:39:02 +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: Hilton Chain Cc: 64620@debbugs.gnu.org Received: via spool by 64620-submit@debbugs.gnu.org id=B64620.16928915025086 (code B ref 64620); Thu, 24 Aug 2023 15:39:02 +0000 Received: (at 64620) by debbugs.gnu.org; 24 Aug 2023 15:38:22 +0000 Received: from localhost ([127.0.0.1]:38435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZCPd-0001Js-A1 for submit@debbugs.gnu.org; Thu, 24 Aug 2023 11:38:22 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:60217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZA9P-0005O6-7S for 64620@debbugs.gnu.org; Thu, 24 Aug 2023 09:13:28 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 1CF7E1BF20C; Thu, 24 Aug 2023 13:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fernseed.me; s=gm1; t=1692882796; h=from:from: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; bh=3toaC3x/OFxQCpYyasdgsMo/LUkRfDYiYtM7YPn2sqE=; b=CSEU3noS65ittTgKYQnaDk0ykubbfgykSElea+6j+ozszHldk31k5b5RbnGmU8TaEMHFhY KIkR/g5WAVXpXgdCpjt2q4bK+d88slXgGJGjpvfZtaepSSMZIcsmezPBfi/0LMzDH+wId0 8iuoJ1g+DS+FeClsNhTrtmqXmKhBpLB8+UankblgwCjzvLd56D2VZmGEgUOSNeujtNYzle PzU9g+UiUnBdXnTxbD3aJ7pUTG7xSZ5VapaJQDrg5WMQwTiscbmzZ870bAeyWUu7EsPedN 9nuUrsO1n70xT7XTNsSeaGLabwAi3mxPUbFnK/Lb+VvUV+l/l7qCraF+IOcC8A== From: Kierin Bell In-Reply-To: <87wmxkhbin.wl-hako@ultrarare.space> (Hilton Chain's message of "Thu, 24 Aug 2023 20:26:24 +0800") References: <0173e076aafb6ec389a7ebca5d56b7f4e8a02b6e.1689347338.git.fernseed@fernseed.me> <87wmxkhbin.wl-hako@ultrarare.space> Date: Thu, 24 Aug 2023 09:13:10 -0400 Message-ID: <875y54ziqh.fsf@fernseed.me> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: fernseed@fernseed.me X-Mailman-Approved-At: Thu, 24 Aug 2023 11:38:18 -0400 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: mx2.migadu.com X-Migadu-Spam-Score: 2.69 X-Spam-Score: 2.69 X-Migadu-Queue-Id: 61D563AF21 X-TUID: Lo2zEvTdnU8T Hi Hilton, Hilton Chain writes: > Hi Kierin, > [...] > Tried to convert my config to home-emacs-configuration [1], my > original configuration wasn't well written, so the rewrite took a > while. Luckily it doesn't have too many lines. :) > > [1]: > https://codeberg.org/hako/Testament/src/branch/test-home-emacs/dorphine-home.scm#L452-L858 > > It's nice to see this! What strikes me immediately is that I can easily understand your Emacs config, because configuration via Scheme records is so consistent and uniform. I can't usually say that about Emacs init files. Granted, it does take a long time to get used to the format coming from Elisp. (And the import function isn't perfect.) After thinking about what Ludo' said, I'm exploring the possibility of removing the `configured-packages' fields and `emacs-package' record type from the core `home-emacs-service-type'. I could then put this functionality (~1300 lines) in a `home-emacs-package-configuration-service-type' that extends the Emacs home service. That could go in a separate channel somewhere, but if it is upstreamed then we can create a de facto standard that encourages innovation and collaboration. A bit of control over how the final serialized Elisp is formatted would be lost by taking the package configuration functionality out of the core Emacs home service, but it is not very significant (especially considering that the point of using the feature would be to configure Emacs in Scheme). And it seems like there would be benefits to a modularized approach from usability and implementation standpoints. Anyway, thanks for testing! -- Kierin Bell GPG Key: FCF2 5F08 EA4F 2E3D C7C3 0D41 D14A 8CD3 2D97 0B36