From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sPpnGqZRUWMUHAAAbAwnHQ (envelope-from ) for ; Thu, 20 Oct 2022 15:48:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EN9pGqZRUWNRGQAAauVa8A (envelope-from ) for ; Thu, 20 Oct 2022 15:48:22 +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 2D459381B1 for ; Thu, 20 Oct 2022 15:48:22 +0200 (CEST) Received: from localhost ([::1]:41442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olVuD-0001h7-Gb for larch@yhetil.org; Thu, 20 Oct 2022 09:48:17 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olVXX-00041L-KR for larch@yhetil.org; Thu, 20 Oct 2022 09:24:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olV4i-00017u-Vo for guix-patches@gnu.org; Thu, 20 Oct 2022 08:55:18 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olV4g-0006rP-Rn for guix-patches@gnu.org; Thu, 20 Oct 2022 08:55:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olV4g-0003My-IJ for guix-patches@gnu.org; Thu, 20 Oct 2022 08:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58652] Creating home-emacs-service-type Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Oct 2022 12:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58652 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Zain Jabbar , 58652@debbugs.gnu.org, jbranso@dismail.de Received: via spool by 58652-submit@debbugs.gnu.org id=B58652.166627044712883 (code B ref 58652); Thu, 20 Oct 2022 12:55:02 +0000 Received: (at 58652) by debbugs.gnu.org; 20 Oct 2022 12:54:07 +0000 Received: from localhost ([127.0.0.1]:33353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olV3n-0003Li-AN for submit@debbugs.gnu.org; Thu, 20 Oct 2022 08:54:07 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:49671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olV3l-0003LZ-1t for 58652@debbugs.gnu.org; Thu, 20 Oct 2022 08:54:06 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4MtSGH6lpfz3wcZ; Thu, 20 Oct 2022 14:53:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1666270440; bh=j2ByuQxUAMK3LBysKxFphkxpw5GmT4Qytm1dlJIUQ7Q=; h=Subject:From:To:Date:In-Reply-To:References; b=ovhsT/uOHiX+K7t9DXRECO56Rp0ThWc5nWwmDgvHGbzIz8mBzCdY8G3Jh3RFR8Vcy X5RDtKmGyXinFipkmNgMv7usUBhUZZgRZh5Bxed5p6yBCMEfbgvi2Yoe4PuUIsRAyP q9crCBFtmAvc29Vy3YDecnH9Urrh2EMP8HS3Shic= Message-ID: <495a0fab9b20dd40f9fb1aef2261b60e053bf5cd.camel@ist.tugraz.at> From: Liliana Marie Prikler Date: Thu, 20 Oct 2022 14:53:58 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666273702; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=j2ByuQxUAMK3LBysKxFphkxpw5GmT4Qytm1dlJIUQ7Q=; b=WR4DteR7cJd2YjJCNX7mBv1mL//55mCjSRJx5aEnEfirWio3SgSyINlEq9aoXpvso3hGVh Xh6/A94EFl3PdCb7oPmyq4WifC4wQXrVbNcrqGaqT/PPIdXJtieCQSGL2/cqmEx8XPUDEi DjB0G74SSjWLsFj0uf79efMxy+ueDpIi6X9OW5pYXU+WmqLMWZiHOvB4wqDj8jeOezGNHO Ui4UIfo0vZhSN2WrqfwYBbm8fqqSNioPPd6S4L/+tq2zn6JiGf2z1J2jC5NAaAQys4+p3B qalfU7OHqYYR9VV2ilmMr2nRT5t6eZD/jvt7+phGANr4ETqrWkCHPYdRr8dikg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666273702; a=rsa-sha256; cv=none; b=tQJNwntfiectuIThJt/2bTjvZRDYIWlZDkLULNyOE15Hy7riOleiUvBPAnanUrtXbVc7r2 dgwzBupT6vJpK87+IozlIFcXGA2tYQWASwpNSUiMrDGf73P5xiCJuEDwiLc6OGQqnyewmp BBwq9oLCNrQiPXVTBdyg5sBHCu7vAygeG0SiaVe8OuIHbki/zgpXZIlFKU4ECtbMoMQmol EbvgS16ai/py9HZecc9Xh4+1XW1ZgU82oeG+oErh4wONssKEQ5nF241oD7s6bhw1S7OBQR 67CipUh1GMHvC4me6v9dAnn0hij4wvukCj4O/lnioN4NK0BDqN0LR1bd+CgEDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="ovhsT/uO"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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" X-Migadu-Spam-Score: 5.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="ovhsT/uO"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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" X-Migadu-Queue-Id: 2D459381B1 X-Spam-Score: 5.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: uKUTWQPjNl4I Am Mittwoch, dem 19.10.2022 um 15:59 -1000 schrieb Zain Jabbar: > Aloha Guix Development Team, >=20 > First submission of a patch to this mail service. Hopefully this > works. I welcome any and all feedback. >=20 > Attached is a patch which creates a new file > =3D/gnu/home/services/emacs.scm=3D which defines a new service > =3Dhome-emacs-service-type=3D and a configuration for said service > =3Dhome-emacs-configuration=3D. The configuration contains a list of > packages to add to the home-profile, and a list of expressions to add > into Emacs' =3Dinit.el=3D and =3Dearly-init.el=3D. Note that you reverted the patch direction. > Here is an example of a home environment file which: >=20 > Adds the following packages: > - =3Dbash=3D > - =3Demacs-next=3D > - =3Demacs-debbugs=3D > - =3Demacs-evil=3D > - =3Demacs-paredit=3D > - =3Demacs-anzu=3D >=20 > Overwrites the =3D.config/emacs/init.el=3D with: > #+BEGIN_SRC emacs-lisp > (evil-mode 1) > #+END_SRC >=20 > Overwrites the =3D.config/emacs/early-init.el=3D with: > #+BEGIN_SRC emacs-lisp > (setq warning-suppress-log-types '((comp) (comp))) (setq > warning-suppress-types '((comp) (comp))) > #+END_SRC >=20 > #+BEGIN_SRC scheme > (use-modules (gnu home services emacs) > =C2=A0=C2=A0=C2=A0=C2=A0 (gnu home) > =C2=A0=C2=A0=C2=A0=C2=A0 (gnu packages) > =C2=A0=C2=A0=C2=A0=C2=A0 (ice-9 pretty-print) > =C2=A0=C2=A0=C2=A0=C2=A0 (gnu services)) >=20 > (define-public minimal-home-environment > =C2=A0 (home-environment > =C2=A0=C2=A0 (services > =C2=A0=C2=A0=C2=A0 (list > =C2=A0=C2=A0=C2=A0=C2=A0 (service home-emacs-service-type > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (home-emacs-configuration > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (packages > (list > (specification->package "bash") > (specification->package "emacs-next") > (specification->package "emacs-debbugs") > (specification->package "emacs-evil") > (specification->package "emacs-paredit") > (specification->package "emacs-anzu"))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (init '((evil-mode 1))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (early-init '((setq warning-suppress= -log-types '((comp) > (comp))) > =C2=A0=C2=A0=C2=A0=C2=A0 (setq warning-suppress-types '((comp) (comp)))))= )))))) >=20 > minimal-home-environment > #+END_SRC You should also take an extra-files argument, e.g. to add custom.el or other elisp files that init.el might refer to. Also, I'm not certain if "scheme-file" is the right primitve here =E2=80=93 Emacs Lisp does differ from Scheme, e.g. in keyword syntax among others. Cheers