From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GPLhJ2Ms6mQzHwAAauVa8A:P1 (envelope-from ) for ; Sat, 26 Aug 2023 18:46:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GPLhJ2Ms6mQzHwAAauVa8A (envelope-from ) for ; Sat, 26 Aug 2023 18:46:27 +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 3703E53CEB for ; Sat, 26 Aug 2023 18:46:27 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fernseed.me header.s=gm1 header.b=DTGGsDBu; 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=1693068387; a=rsa-sha256; cv=none; b=EnVeOW5DAWfxnWngjHFy4ezd05HwOJx5loT/2sTz9475sBbCB4YKfP4+bltKn7KQMWc6NS g6Y/le15WbKBFF1HALNYAti+BAAM/jsRZuFwemm1YKLqEL1Kpj+NYHf/RfBPG616HD9fG/ C/K3V3qm+WOEKnLjWSs4rFIgbrvnJWbtcPuwuKpScL7hUo/eRcFl3P83f0kxNlTTvILwh2 mJlEqxpSi5sO8O9It0/0pT5jqPaHgO2CRuyrIdRGx5RhuKZGlvfXEplr7q0ilz+2mHMSh7 fAtSu4pGTGCrL/+AUwfQsLaD7yYk36rwFZr2h4IVbRL5z7GMInc5ZWTJkgOHBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fernseed.me header.s=gm1 header.b=DTGGsDBu; 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=1693068387; 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=chuODUrpcO/O0fuyw9SEEMQIpwUmMJ9e6RYtEAVL2oU=; b=tzl6Sx7OEE4PDloZhj6rUdV7OJr1GDkyzpjx8mcpMqsxWfip/fzMfkFk0PnH74ukoOi2sd Sgg/y2UcG6lAnT+eaOT7JEAT/Q/UDGhML5BtsJIw8kQu6Jnmn02Z569u7Fd2NFvcUyk9zI C3uc17IJZxqtB6pSJl6YJ6frcAHZY4m0XBUeUgbagZ7sRpYFsTM33mpxLBeS2z+UcWnOaG n1MVZ6uDQJ+KgyOpSVelLwJdx4OIW7ulM60k5l5lScWys+f4N2i5l5lfnDSVxj1WTmVJFn HctTUXx/Ug+f5Q87h+71sDNvzyCHjqJs5Qu8/QjJt0xvGB0Zv61zvVYKPR7CJQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZwQC-0002ro-0d; Sat, 26 Aug 2023 12:46:00 -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 1qZwQ9-0002rH-S6 for guix-patches@gnu.org; Sat, 26 Aug 2023 12:45:58 -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 1qZwQ9-0007xu-Jt for guix-patches@gnu.org; Sat, 26 Aug 2023 12:45:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZwQE-00043n-Hl for guix-patches@gnu.org; Sat, 26 Aug 2023 12:46: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: Sat, 26 Aug 2023 16:46: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: "(" Cc: 64620@debbugs.gnu.org Received: via spool by 64620-submit@debbugs.gnu.org id=B64620.169306831015529 (code B ref 64620); Sat, 26 Aug 2023 16:46:02 +0000 Received: (at 64620) by debbugs.gnu.org; 26 Aug 2023 16:45:10 +0000 Received: from localhost ([127.0.0.1]:43364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZwPM-00042K-B9 for submit@debbugs.gnu.org; Sat, 26 Aug 2023 12:45:10 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]:42743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZtvi-0008QF-Kf for 64620@debbugs.gnu.org; Sat, 26 Aug 2023 10:06:26 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id DB67360003; Sat, 26 Aug 2023 14:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fernseed.me; s=gm1; t=1693058769; 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=chuODUrpcO/O0fuyw9SEEMQIpwUmMJ9e6RYtEAVL2oU=; b=DTGGsDBunXtYC46PObw1jeSRYgXyshFrtg0vNhbUAy/TgnZ8jOC09D3PRV8B19I8bbvfFh 1DpRdDaghic/7H65XmA5SLwpJwdSOb17Zln0L+uOmjrLZlrX6C5CzCV+zyN467jnkdyWol RdkG9OAzB0zLO/0A3V97ZVk/FD8A54ssKCH0WLsfsH1AAja+8pI+xMy9wP0hV7ZKRfMG6V Id/ajRpaZmpGNEvXWWW+zURUmuqzrpCjvkuINXqlhxsi3/6LmsrUBFwrmnnI2BbOmmAz90 ywd0lZ+IyK99DxihYLU+LtfIwgRHgfcU4V5f0MOiy2/slMfHlLg33BgelkjXXw== From: Kierin Bell In-Reply-To: <87il945gzu.fsf@disroot.org> (paren@disroot.org's message of "Thu, 24 Aug 2023 21:00:49 +0100") References: <0173e076aafb6ec389a7ebca5d56b7f4e8a02b6e.1689347338.git.fernseed@fernseed.me> <87il945gzu.fsf@disroot.org> Date: Sat, 26 Aug 2023 10:06:03 -0400 Message-ID: <874jklyk38.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: Sat, 26 Aug 2023 12:45:07 -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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -5.22 X-Migadu-Queue-Id: 3703E53CEB X-Migadu-Spam-Score: -5.22 X-TUID: UUwsiUbpnSzS Hi (, "(" writes: > *Very* nice! I think it would be nice to support a PACKAGES field with > a list of Guix packages to make available to Emacs, though that would > complicate the code a bit. > > You'd probably have to do something like what I did[1], which is a > little hacky, and you'd want to somehow redirect the output from > building the Emacs profile to a log file in '$XDG_STATE_HOME/log/emacs', > but it'd let people use native-comp without the hassle of transforming > the packages themselves (with appropriate EMACS and NATIVE-COMP? fields, > of course :)) Also lets you isolate your emacs environment from your > regular environment, if you wanted to do that for... reasons. > > If you'd rather not implement that for now, it's okay; I'm very much > willing to submit a followup if/when this is merged. > > [1] https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/home/services/emacs.scm#L113 > > -- ( > > Although there is an EXTRA-PACKAGES field for Guix packages (I use it, e.g., for font packages) and a CONFIGURED-PACKAGES field specifically for installing Emacs packages, I do like the idea of having a separate Emacs profile, or even a separate profile for each Emacs server. Part of me wanted to find a way to do that more "properly", with some sort of lower-level `home-emacs-environment-service-type' that sets up the profiles (hopefully in a more orthodox way), etc. But that turned out to be even more hacky in the end. Looking at the Emacs build system modules, I'm not sure exactly how building separate profiles would allow native-comp without transforming the package inputs. Isn't the build system basically hard-coded to use `emacs-minimal' for building Emacs packages (i.e., unless we manually transform the package inputs)? At the very least, I'd like to set things up the best I can for this, even if I end up leaving it to people with more expertise to implement. Thanks (! -- Kierin Bell GPG Key: FCF2 5F08 EA4F 2E3D C7C3 0D41 D14A 8CD3 2D97 0B36