GNU bug report logs - #58693
[PATCH 0/1] gnu: home: Add home-emacs-service-type.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: "(" <paren@HIDDEN>; Keywords: patch moreinfo; merged with #58652; dated Fri, 21 Oct 2022 19:24:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 58693 <at> debbugs.gnu.org:


Received: (at 58693) by debbugs.gnu.org; 8 Nov 2022 12:59:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 08 07:59:21 2022
Received: from localhost ([127.0.0.1]:36576 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1osOCH-0001Ro-5v
	for submit <at> debbugs.gnu.org; Tue, 08 Nov 2022 07:59:21 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56506)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1osOCE-0001RY-UJ
 for 58693 <at> debbugs.gnu.org; Tue, 08 Nov 2022 07:59:19 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1osOC9-00060j-Ix; Tue, 08 Nov 2022 07:59:13 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=wJtYrNacTCp3ztT2X2D6+2xPcaRgBTpapYvGc//IfUk=; b=kBSSCE+VuiC9U+1HfrR6
 n+OPdAyDPmgaZXXor+cphEzEsZpob/iere9mKhibvlzdb1bt3skOGXFf04aQ6pAP8otTYXqodjMj0
 jn0MepDjagZ2WwXncyCOAtrA8yZTLEkzruOkAdzh6lFv3rvUf3i7A22NlhGlvdTTP+RnFdUFVM636
 KekYfhfsBuZrI/PFDGK2SP4GtL7eZawzrzyhRz82sxrBbDF7NHEJixNAmLP8rJKedwwP9MrWG3How
 CZX0/nEzyU5MMGm0ohLi5DcKGCVRme4P1JV0FB9kEFaLhdA2QNqf/m/VQPsu6IpLj5Go6UjWkZBAS
 jp/HpXmyYSKZ2A==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1osOC8-0004nD-Un; Tue, 08 Nov 2022 07:59:13 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: "(" <paren@HIDDEN>
Subject: Re: bug#58693: [PATCH 0/1] gnu: home: Add home-emacs-service-type.
References: <20221021192328.4833-1-paren@HIDDEN>
 <20221021192458.4956-1-paren@HIDDEN>
Date: Tue, 08 Nov 2022 13:59:10 +0100
In-Reply-To: <20221021192458.4956-1-paren@HIDDEN> (paren@HIDDEN's
 message of "Fri, 21 Oct 2022 20:24:58 +0100")
Message-ID: <87r0ydpppd.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 58693
Cc: 58693 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi!

"(" <paren@HIDDEN> skribis:

> +@defvr {Scheme Variable} home-emacs-service-type
> +This is the service type for configuring the Emacs text editor and
> +running its daemon.

I would happily use some Guix Home service to configure Emacs, but I
don=E2=80=99t want to start it as a daemon (currently I start it from
~/.xsession as I use EXWM).

Could we somehow decouple the daemon aspect from the rest?

Anyhow, I=E2=80=99m glad to see this work=E2=80=94thank you!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#58693; Package guix-patches. Full text available.
Added tag(s) moreinfo. Request was from Christopher Baines <mail@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 58652 58693. Request was from Liliana Marie Prikler <liliana.prikler@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 58693 <at> debbugs.gnu.org:


Received: (at 58693) by debbugs.gnu.org; 22 Oct 2022 09:41:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 22 05:41:54 2022
Received: from localhost ([127.0.0.1]:39707 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1omB0r-0004wJ-HV
	for submit <at> debbugs.gnu.org; Sat, 22 Oct 2022 05:41:54 -0400
Received: from mail-ed1-f68.google.com ([209.85.208.68]:40545)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <liliana.prikler@HIDDEN>)
 id 1omB0p-0004w0-1S; Sat, 22 Oct 2022 05:41:51 -0400
Received: by mail-ed1-f68.google.com with SMTP id r14so14271643edc.7;
 Sat, 22 Oct 2022 02:41:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 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=Uw0z0h2bt6TQ0q+alOW14JDufj45qAlsZYpd1YN1Duk=;
 b=qe931OQ/o+kFirIbDLWwxHxawo5+x/AKYq9vtLHZdSDVsE/8wmdeCAK5ZJwenWNtS1
 TgWk8Ubo5hNtDpisOutDM0qgUC797jJejDj+kWk0KPiotG0svzVXy6Du1MKsBZ3eAin8
 LDsQF5P/1LVAR26S68Q1YsO3QSK8/nZxJzZvRaEFXiHWXeIMqnS0lmURNFEoOIRXIQhU
 MByyQn27KZwCfb7uFakyzlh3VYF/jhbNeQwH+M9zqhh8QXeKipHBXGDbhZdSZEj2FT3b
 nuMrv5L5xFqQBOQLB5gnQvuNkrXNleBen6S3VCG0n0yksD8U3wzdmtUtj0Y/KXt4L2Xq
 piTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 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=Uw0z0h2bt6TQ0q+alOW14JDufj45qAlsZYpd1YN1Duk=;
 b=cQqxFZYIlI6HGZQiO/L1tIDYVmHE12MIOJlQCJOTgBMi5ZCNyAIOPbShvOvQpTE5gM
 Ds/oLbdMOOhr0SXOZPM0llPFzlrLC5PUyQyE962IYvB6PmjXm/XIxf1S7vPK+jXmpXVk
 d5WHl7RMJ/XPZQAjzoK+mcl4qe0DMO7PvSupL8Ps92DyH+gakMJ/2kO+0sQdF6e0Jv6S
 G7kULJfPfkc15w++JyHL7FWuTlIpER9aaq/MRwaF1JpiWFsbsg71n6xq1DTf04FvCSd1
 uV+E2x4HSVr/BpezElHO4IK81BIpgUE7LPmL/ZN2+8tXCO711IqlvWX90ghjs3p0wLvr
 NKjQ==
X-Gm-Message-State: ACrzQf32elzlIJjdGUZRJ9pUeDEEvMMG0GLLYeV+nZbRm35+FoJFyKUS
 cwqcA9tqNlB5FgMQGjeLecU=
X-Google-Smtp-Source: AMsMyM68Qd76lCosv9/VSMgMAqtIXZV/rUiBf5hfvC5/AANgXvzS08dH78Nx9hLBuVgGJXoW9zioGQ==
X-Received: by 2002:a17:907:3e85:b0:73d:60cc:5d06 with SMTP id
 hs5-20020a1709073e8500b0073d60cc5d06mr19846855ejc.722.1666431705069; 
 Sat, 22 Oct 2022 02:41:45 -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
 kz1-20020a17090777c100b0073d753759fasm12995269ejc.172.2022.10.22.02.41.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 22 Oct 2022 02:41:44 -0700 (PDT)
Message-ID: <9c453dd100e4d66d458a217f448c0b2362adc2f2.camel@HIDDEN>
Subject: Re: [PATCH 1/1] gnu: home: Add home-emacs-service-type.
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
To: "(" <paren@HIDDEN>, 58693 <at> debbugs.gnu.org
Date: Sat, 22 Oct 2022 11:41:43 +0200
In-Reply-To: <20221021192458.4956-1-paren@HIDDEN>
References: <20221021192458.4956-1-paren@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
User-Agent: Evolution 3.46.0 
MIME-Version: 1.0
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58693
Cc: control <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

bWVyZ2UgNTg2OTMgNTg2NTIKdGhhbmtzCgpBbSBGcmVpdGFnLCBkZW0gMjEuMTAuMjAyMiB1bSAy
MDoyNCArMDEwMCBzY2hyaWViICg6Cj4gKyhkZWZpbmUtY29uZmlndXJhdGlvbi9uby1zZXJpYWxp
emF0aW9uIGhvbWUtZW1hY3MtY29uZmlndXJhdGlvbgo+ICvCoCAoZW1hY3MKPiArwqDCoCAoZmls
ZS1saWtlIGVtYWNzKQo+ICvCoMKgICJUaGUgcGFja2FnZSBwcm92aWRpbmcgQGZpbGV7L2Jpbi9l
bWFjc30uIikKPiArwqAgKHBhY2thZ2VzCj4gK8KgwqAgKGxpc3Qtb2YtZmlsZS1saWtlcyAnKCkp
Cj4gK8KgwqAgIlBhY2thZ2VzIHRvIGFkZCB0byB0aGUgRW1hY3MgcGx1Z2luIGxvYWQgcGF0aC4i
KQo+ICvCoCAobmF0aXZlLWNvbXBpbGU/Cj4gK8KgwqAgKGJvb2xlYW4gI2YpCj4gK8KgwqAgIldo
ZXRoZXIgdG8gY29tcGlsZSB0aGUgQGNvZGV7cGFja2FnZXN9IHVzaW5nIHRoZSBFbWFjcyBwYWNr
YWdlCj4gK3Byb3ZpZGVkIGFzIHRoZSB2YWx1ZSBvZiB0aGUgQGNvZGV7ZW1hY3N9IGZpZWxkLCB3
aGljaCB3aWxsIGVu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qDCoMKgwqDCoMKgwqDCoMKgwqAgKGhvbWUtZW1hY3MtY29uZmln
dXJhdGlvbi1lbWFjcyBjb25maWcpCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoCAiL2Jpbi9lbWFjc2NsaWVudCIpCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoCAiLS1ldmFsIiAiKGtpbGwtZW1hY3MpIikpKSkpKQo+ICsKPiArKGRlZmlu
ZSAoaG9tZS1lbWFjcy14ZGctY29uZmlndXJhdGlvbi1maWxlcyBjb25maWcpCj4gK8KgIGAoKCJl
bWFjcy9lYXJseS1pbml0LmVsIgo+ICvCoMKgwqDCoCAsKGhvbWUtZW1hY3MtY29uZmlndXJhdGlv
bi1lYXJseS1pbml0LWZpbGUgY29uZmlnKSkKPiArwqDCoMKgICgiZW1hY3MvaW5pdC5lbCIKPiAr
wqDCoMKgwqAgLChob21lLWVtYWNzLWNvbmZpZ3VyYXRpb24taW5pdC1maWxlIGNvbmZpZykpKSkK
WW91J3JlIG1pc3NpbmcgYW4gZXNjYXBlIGhhdGNoIGZvciBhZGRpdGlvbmFsIGVsaXNwIGZpbGVz
IGxpa2UKY3VzdG9tLmVsCgpDaGVlcnMK





Information forwarded to guix-patches@HIDDEN:
bug#58693; Package guix-patches. Full text available.

Message received at 58693 <at> debbugs.gnu.org:


Received: (at 58693) by debbugs.gnu.org; 21 Oct 2022 19:25:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 21 15:25:06 2022
Received: from localhost ([127.0.0.1]:39060 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1olxdh-00046d-Pm
	for submit <at> debbugs.gnu.org; Fri, 21 Oct 2022 15:25:06 -0400
Received: from knopi.disroot.org ([178.21.23.139]:58678)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paren@HIDDEN>) id 1olxdf-00046V-Nu
 for 58693 <at> debbugs.gnu.org; Fri, 21 Oct 2022 15:25:04 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id 2B8DA4E85E;
 Fri, 21 Oct 2022 21:25:03 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id l-kvisXl1BMA; Fri, 21 Oct 2022 21:25:01 +0200 (CEST)
From: "(" <paren@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1666380301; bh=u3sHr/NDhZF7M4jXBAH1QFadc7uus1T0aOMwbVsHgE4=;
 h=From:To:Cc:Subject:Date;
 b=FiddV2esqo7ccVfZL6MgSCthP3UZgNPvy1goXwD9ePMOvWBPZ6fUJnhKN/LMrPXLu
 s2BznQwV6WRQVJOE9MRJQMcwi/l1mxSmwKRVRhQcpGkb+YxH/tQxcSNwFNN+B4vzIz
 nurPYC0ujcpHHV6xWipcWeJ3+WDs74PzKH72Rwel2hvQV7Dv777rIas8De7EgKsXXW
 lUx2YCbstM7iH5l0TWzudj4BUDDiO6GgaV75UbNY8lpmZ2AmAW0/ljPPVEvYg+0RJ4
 J89HQLswkWwdjm5gKCClr1O3mqiPsyfRWkD7xsGo38EEuGeUFSyvIie6J4Z2mXf+nM
 815/JvNDnfJgQ==
To: 58693 <at> debbugs.gnu.org
Subject: [PATCH 1/1] gnu: home: Add home-emacs-service-type.
Date: Fri, 21 Oct 2022 20:24:58 +0100
Message-Id: <20221021192458.4956-1-paren@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: * gnu/local.mk (GNU_SYSTEM_MODULES): Add
 gnu/home/services/emacs.scm.
 * gnu/home/services/emacs.scm (home-emacs-configuration): New record type.
 (home-emacs-service-type): New variable. * doc/guix.tex [...] 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.3 FROM_ONE_CHAR          Bogus FROM name
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
X-Debbugs-Envelope-To: 58693
Cc: "\(" <paren@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

* gnu/local.mk (GNU_SYSTEM_MODULES): Add gnu/home/services/emacs.scm.
* gnu/home/services/emacs.scm (home-emacs-configuration): New
  record type.
(home-emacs-service-type): New variable.
* doc/guix.texi: Document them.
---
 doc/guix.texi               |  51 ++++++++++++
 gnu/home/services/emacs.scm | 162 ++++++++++++++++++++++++++++++++++++
 gnu/local.mk                |   1 +
 3 files changed, 214 insertions(+)
 create mode 100644 gnu/home/services/emacs.scm

diff --git a/doc/guix.texi b/doc/guix.texi
index 3bf2dee752..dc27b7437e 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -40517,6 +40517,7 @@ services)}.
 * Shepherd: Shepherd Home Service.                     Managing User's Daemons.
 * SSH: Secure Shell.                                   Setting up the secure shell client.
 * Desktop: Desktop Home Services.                      Services for graphical environments.
+* Emacs: Emacs Home Service.                           Service for running Emacs.
 * Guix: Guix Home Services.                            Services for Guix.
 @end menu
 @c In addition to that Home Services can provide
@@ -41348,6 +41349,56 @@ The package providing the @code{/bin/dbus-daemon} command.
 @end table
 @end deftp
 
+@node Emacs Home Service
+@subsection Emacs Home Service
+
+@defvr {Scheme Variable} home-emacs-service-type
+This is the service type for configuring the Emacs text editor and
+running its daemon.
+
+Note that if you have an existing @file{~/.emacs} and/or
+@file{~/.emacs.d}, the configuration aspect of this service will
+not function, as they take precedence over @file{~/.config/emacs},
+which this service uses in the interest of cleanliness.  To migrate
+to the XDG directory, run these commands:
+
+@example
+$ cp ~/.emacs.d $XDG_CONFIG_HOME/emacs
+$ cp ~/.emacs $XDG_CONFIG_HOME/emacs/init.el
+@end example
+@end defvr
+
+@deftp {Data Type} home-emacs-configuration
+The configuration record for @code{home-emacs-service-type}.
+
+@table @asis
+@item @code{emacs} (default: @code{emacs})
+The package providing the @file{/bin/emacs} and @file{/bin/emacsclient}
+commands.
+
+@item @code{packages} (default: @code{'()})
+Packages providing Emacs plugins to add to the daemon's load paths.
+
+@item @code{native-compile?} (default: @code{#f})
+Whether to recompile all @code{packages}, using the provided @code{emacs}
+package in place of @code{emacs-minimal}, which will enable native
+compilation if the @code{emacs} package supports it.  All
+non-@code{-minimal} Emacs packages at version 28 or above should support
+native compilation.
+
+@item @code{init-file} (default: @code{(plain-file "init.el" "")})
+The file-like to use as @file{init.el}, the main Emacs configuration
+file.
+
+@item @code{early-init-file} (default: @code{(plain-file "early-init.el" "")})
+The file-like to use as @file{early-init.el}, which is loaded early in
+the initialisation process, before the GUI is started.
+
+@item @code{debug?} (default: @code{#f})
+Whether to enable detailed debug log output with backtraces.
+@end table
+@end deftp
+
 @node Guix Home Services
 @subsection Guix Home Services
 
diff --git a/gnu/home/services/emacs.scm b/gnu/home/services/emacs.scm
new file mode 100644
index 0000000000..a727a2f246
--- /dev/null
+++ b/gnu/home/services/emacs.scm
@@ -0,0 +1,162 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2022 ( <paren@HIDDEN>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu home services emacs)
+  #:use-module (gnu home services)
+  #:use-module (gnu home services shepherd)
+  #:autoload   (gnu packages emacs) (emacs-minimal
+                                     emacs)
+  #:use-module (gnu services configuration)
+  #:use-module (guix gexp)
+  #:use-module (guix packages)
+  #:use-module (guix records)
+  #:use-module (srfi srfi-1)
+  #:use-module (srfi srfi-26)
+
+  #:export (home-emacs-configuration
+            home-emacs-service-type))
+
+(define list-of-file-likes?
+  (list-of file-like?))
+
+(define-configuration/no-serialization home-emacs-configuration
+  (emacs
+   (file-like emacs)
+   "The package providing @file{/bin/emacs}.")
+  (packages
+   (list-of-file-likes '())
+   "Packages to add to the Emacs plugin load path.")
+  (native-compile?
+   (boolean #f)
+   "Whether to compile the @code{packages} using the Emacs package
+provided as the value of the @code{emacs} field, which will enable
+native compilation if the @code{emacs} package supports it.")
+  (init-file
+   (file-like (plain-file "init.el" ""))
+   "File-like to use as the initialisation Lisp file.")
+  (early-init-file
+   (file-like (plain-file "early-init.el" ""))
+   "File-like to use as the pre-initialisation Lisp file.")
+  (debug?
+   (boolean #f)
+   "Whether to enable debugging."))
+
+(define (home-emacs-profile-packages config)
+  (list (home-emacs-configuration-emacs config)))
+
+(define (home-emacs-transformed-packages config)
+  (map (if (home-emacs-configuration-native-compile? config)
+           (package-input-rewriting
+            `((,emacs-minimal
+              . ,(home-emacs-configuration-emacs config))))
+           identity)
+       (let ((packages (home-emacs-configuration-packages config)))
+         (concatenate
+          (cons packages
+                (map (compose (cute map second <>)
+                              package-transitive-propagated-inputs)
+                     packages))))))
+
+(define (home-emacs-shepherd-services config)
+  (list (shepherd-service
+         (provision '(emacs))
+         (documentation "Start the Emacs daemon.")
+         (modules '((ice-9 ftw)
+                    (srfi srfi-1)
+                    (srfi srfi-26)))
+         (start
+          #~(make-forkexec-constructor
+             (list #$(file-append
+                      (home-emacs-configuration-emacs config)
+                      "/bin/emacs")
+                   "--fg-daemon" "--eval"
+                   (format #f "~s"
+                           `(progn
+                             (setq custom-file
+                                   (concat (or (getenv "XDG_CONFIG_HOME")
+                                               (concat (getenv "HOME")
+                                                       "/.config"))
+                                           "/emacs/custom.el"))
+                             (load custom-file)))
+                   #$@(if (home-emacs-configuration-debug? config)
+                          (list "--debug-init")
+                          '()))
+             #:log-file
+             (format #f "~a/emacs.log"
+                     (or (getenv "XDG_LOG_HOME")
+                         (format #f "~a/.local/var/log"
+                                 (getenv "HOME"))))
+             #:environment-variables
+             (let ((env-var
+                    (lambda (name path)
+                      (define (regular-directory? directory)
+                        (not (member directory (list "." ".."))))
+
+                      (define (package-paths package)
+                        (let ((directory (string-append package "/" path)))
+                          (if (file-exists? directory)
+                              (cons directory
+                                    (map (cute string-append directory "/" <>)
+                                         (scandir directory regular-directory?)))
+                              '())))
+
+                      (let ((old-value (getenv name)))
+                        (string-append
+                         name "="
+                         (string-join
+                          (append-map
+                           package-paths
+                           (list #$@(home-emacs-transformed-packages config)))
+                          ":" (if old-value
+                                  'suffix
+                                  'infix))
+                         (or old-value ""))))))
+               (append (default-environment-variables)
+                       (list (env-var "EMACSLOADPATH"
+                                      "share/emacs/site-lisp")
+                             (env-var "EMACSNATIVELOADPATH"
+                                      "lib/emacs/native-site-lisp"))))))
+         (stop
+          #~(make-forkexec-constructor
+             (list #$(file-append
+                      (home-emacs-configuration-emacs config)
+                      "/bin/emacsclient")
+                   "--eval" "(kill-emacs)"))))))
+
+(define (home-emacs-xdg-configuration-files config)
+  `(("emacs/early-init.el"
+     ,(home-emacs-configuration-early-init-file config))
+    ("emacs/init.el"
+     ,(home-emacs-configuration-init-file config))))
+
+(define home-emacs-service-type
+  (service-type
+   (name 'home-emacs)
+   (extensions
+    (list (service-extension
+           home-profile-service-type
+           home-emacs-profile-packages)
+          (service-extension
+           home-shepherd-service-type
+           home-emacs-shepherd-services)
+          (service-extension
+           home-xdg-configuration-files-service-type
+           home-emacs-xdg-configuration-files)))
+   (default-value (home-emacs-configuration))
+   (description
+    "Configure and run the GNU Emacs extensible text editor.")))
diff --git a/gnu/local.mk b/gnu/local.mk
index 8247180bef..3431c771b8 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -88,6 +88,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/home/services.scm			\
   %D%/home/services/desktop.scm			\
   %D%/home/services/symlink-manager.scm		\
+  %D%/home/services/emacs.scm			\
   %D%/home/services/fontutils.scm		\
   %D%/home/services/guix.scm			\
   %D%/home/services/pm.scm			\
-- 
2.38.0





Information forwarded to guix-patches@HIDDEN:
bug#58693; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Oct 2022 19:23:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 21 15:23:46 2022
Received: from localhost ([127.0.0.1]:39055 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1olxcQ-00043w-AQ
	for submit <at> debbugs.gnu.org; Fri, 21 Oct 2022 15:23:46 -0400
Received: from lists.gnu.org ([209.51.188.17]:57846)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paren@HIDDEN>) id 1olxcO-00043p-Nz
 for submit <at> debbugs.gnu.org; Fri, 21 Oct 2022 15:23:45 -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 <paren@HIDDEN>) id 1olxcK-0001f8-Q0
 for guix-patches@HIDDEN; Fri, 21 Oct 2022 15:23:43 -0400
Received: from knopi.disroot.org ([178.21.23.139])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <paren@HIDDEN>) id 1olxcJ-0004Y4-2E
 for guix-patches@HIDDEN; Fri, 21 Oct 2022 15:23:40 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id 960FD4E856;
 Fri, 21 Oct 2022 21:23:34 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id dYVkWGumlTT0; Fri, 21 Oct 2022 21:23:33 +0200 (CEST)
From: "(" <paren@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1666380213; bh=9ENGgeFPpdfSiUnDZD8K2pULwN1wcOpTN2d+ZGShm7E=;
 h=From:To:Cc:Subject:Date;
 b=l5vdP8xoyZvmGHgDeZQ+FZVbz7BZFhc9Koa/waKKBf6W5aFfKEvcmdGCafkIZs4tI
 uEMmEPuSCjaoPZxfjXDhS0a+jt8G1FOTTtskuzvDVjBTzZ+5tQL8cj1hcyNQXmpiLS
 Sy19n+XJXX9eCU8nD6gDxyWMUwbuSkuCQJXVwqPjJO3ISAKsa0QnqMeviuvg+VlCOX
 6oROmyPPI6B8iajmrm8DPlMqKKJrboH46/bxrLXJxhES7ilk9g8UPMnaxHMfMo3Ei9
 kjAjvjXtObqHy3dJ7uxhKxs3KnuagBLqOA/UUODlMPkkF2TnHaE0RSxa1yJD0lRfTY
 MMWD0L4G3QSXg==
To: guix-patches@HIDDEN
Subject: [PATCH 0/1] gnu: home: Add home-emacs-service-type.
Date: Fri, 21 Oct 2022 20:23:28 +0100
Message-Id: <20221021192328.4833-1-paren@HIDDEN>
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@HIDDEN;
 helo=knopi.disroot.org
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, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
Cc: "\(" <paren@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hey Guix!

This patch finally adds a home-emacs-service-type, which supports:

  - Setting up the ``init.el'' and ``early-init.el'' files.
  - Automatically running the Emacs daemon.
  - Natively compiling the given Emacs packages if ``native-compile?''
    is enabled.
  - Loading the given Emacs packages *without* installing them into
    the profile, by setting EMACSLOADPATH and EMACSNATIVELOADPATH
    appropriately before launching the daemon.
  - Enabling ``--debug-init''.

I hope it'll see plenty of use :)

( (1):
  gnu: home: Add home-emacs-service-type.

 doc/guix.texi               |  51 ++++++++++++
 gnu/home/services/emacs.scm | 162 ++++++++++++++++++++++++++++++++++++
 gnu/local.mk                |   1 +
 3 files changed, 214 insertions(+)
 create mode 100644 gnu/home/services/emacs.scm


base-commit: 4716cea6256523a8ecf90a426d675bfb7620f3e4
-- 
2.38.0





Acknowledgement sent to "(" <paren@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#58693; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 8 Nov 2022 13:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.