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 ms9.migadu.com with LMTPS id eLZTMuNM52TZdQEASxT56A (envelope-from ) for ; Thu, 24 Aug 2023 14:28:19 +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 IP2cMeNM52Qm1QAAauVa8A (envelope-from ) for ; Thu, 24 Aug 2023 14:28:19 +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 7D68B4D453 for ; Thu, 24 Aug 2023 14:28:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=rS87kv7q; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692880099; h=from:from:sender:sender:reply-to: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=uyenu0aadQLN6/6uSoYGmIqm8JS3jI5ed6gG3FJvB1Q=; b=qXazLfmyW5CDgxY0UrVDFJhoQHykn9YbRVaq+5gmJIW4epScfJGvPm0Xqg/wxXN9YEuItH 0DK1+rYFulnPmZe3el2DUK75ocZ7sP7q6FaRoZkHMB9opEoASXqwYk9499GmrFZIAzR+Jx cO3Jy3A5hgkty9HgIIyQGyG4bO0xjcL2CyXuKLEKfYF9735jFm3vBtm4nmD5wDVunxACVP Pc58fGVEC/QUoWt6j8QKDZ6hr07Wh0qPXXd+bkc9u3HZ4yH1ObG3MOzo0Ir0uLJXqgU0WX E5ipDfYGQsnPjjleYernpUf0YA5Co/8c5JrEPMKyUhU9+eXSq0j8HsBvTsGtNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692880099; a=rsa-sha256; cv=none; b=AQVscZge4GX3QVka2w2Mo7ty9T1xoSB7SRilxcn+SHtnfuBbxcAt47EtcSCMhJjpO7Yww/ XEufK+cN8dn+AAsyWkFGDk3Nd7NJEoKA3gJolgG3co5l/Bq5whCcN3IcR5iv/O8eJNoDmC wHQC4ecwnmDKuNoMS/18cEDMLZZIbuR9O9L4+YcDxswNw1ESHmYA6ZN8Owwm2EprrxgNBC 49RBDfPtdrAw/Fx4aoUa/p1zl4rzM3ot5/Igy0vezLfRuN9ynZsRXTkQy78wOW9B0WkVql xb0DuJ5zpe/64CNwJjBKFlsB7O7+jZ+i+CasqJakRZ9V+geisN2yTLbdHfb3BQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=rS87kv7q; 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=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ9RQ-0008A9-OA; Thu, 24 Aug 2023 08:28: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 1qZ9RP-00088j-GW for guix-patches@gnu.org; Thu, 24 Aug 2023 08:27: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 1qZ9RP-0008UC-7p for guix-patches@gnu.org; Thu, 24 Aug 2023 08:27:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZ9RS-00049O-GX for guix-patches@gnu.org; Thu, 24 Aug 2023 08:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64620] [PATCH] gnu: home: Add home-emacs-service-type. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Aug 2023 12:28: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: Kierin Bell Cc: 64620@debbugs.gnu.org Received: via spool by 64620-submit@debbugs.gnu.org id=B64620.169288002515870 (code B ref 64620); Thu, 24 Aug 2023 12:28:02 +0000 Received: (at 64620) by debbugs.gnu.org; 24 Aug 2023 12:27:05 +0000 Received: from localhost ([127.0.0.1]:36316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZ9QX-00047t-8A for submit@debbugs.gnu.org; Thu, 24 Aug 2023 08:27:05 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:33594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZ9QV-00047l-Bq for 64620@debbugs.gnu.org; Thu, 24 Aug 2023 08:27:04 -0400 Date: Thu, 24 Aug 2023 20:26:24 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1692879983; 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=uyenu0aadQLN6/6uSoYGmIqm8JS3jI5ed6gG3FJvB1Q=; b=rS87kv7qcWVcNZPP6CiramxFMAEZ89xl/q1mt0r7OIAv5qNDCYsgDqSs7KDLLmOx10UEMa Y7xNP5XM6NaUBbbrN8Ns8xCHdPAPSSlxpFQVn4BE/2up0+oMAe0VK35idj51AJrOujaHjq L+PwFSffHQ9gwkrrd7A+bM/KPPPYsypgZLz1qK0B0zAkPCq5U8cbWhk9hpNn1QA3LuybOQ Vcl/u0u81iwjW+shrPy8Wm2gPLx6iC5AjQ38pcsvZdG0wIpqorPKVGlMajI3e+yu27axbo lMfr/KHsR3cg0k6TXIGyavlq6HDloqQk//mUJSl+whG8Om6VEjAfiGByfZWZoQ== Message-ID: <87wmxkhbin.wl-hako@ultrarare.space> In-Reply-To: <0173e076aafb6ec389a7ebca5d56b7f4e8a02b6e.1689347338.git.fernseed@fernseed.me> References: <0173e076aafb6ec389a7ebca5d56b7f4e8a02b6e.1689347338.git.fernseed@fernseed.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / 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: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via 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-Spam-Score: -6.71 X-Spam-Score: -6.71 X-Migadu-Queue-Id: 7D68B4D453 X-Migadu-Scanner: mx1.migadu.com X-TUID: gtVZFxwAjnwd Hi Kierin, On Fri, 14 Jul 2023 23:12:31 +0800, fernseed@fernseed.me wrote: > > From: Kierin Bell > > * gnu/home/services/emacs.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add new file. > * tests/home/services/emacs.scm: New tests file. > * Makefile.am (SCM_TESTS): Add new tests file. > * doc/guix.texi (Emacs Home Services): New node. > * guix/read-print.scm (read-with-comments, read-with-comments/sequence): > Add new ELISP? and UNELISP-EXTENSIONS? keyword arguments to support > reading Elisp. > (%newline-forms): Add `home-emacs-configuration'. > (%elisp-special-forms, %elisp-natural-whitespace-string-forms) > (%elisp-special-symbol-chars, %elisp-confusable-number-symbols) > (%elisp-basic-chars, %elisp-simple-escape-chars): New variables. > (special-form-lead, printed-string, symbol->display-string): Add new > ELISP? keyword argument. > (atom->elisp-string): New helper function. > (pretty-print-with-comments): New ELISP? and SPECIAL-FORMS keyword > arguments to support serialization to Elisp. General improvements: > enable pretty-printing of alists and improper lists; only print lists of > constants with one element per line when length exceeds LONG-LIST; do > not print newline before special read syntax forms (e.g., `'', `#~', > etc.) unless they would exceed MAX-WIDTH; include backslashes when > calculating whether a string would exceed MAX-WIDTH; do not print > extraneous newline when special form has an empty body; print newlines > after list arguments of special forms; print first argument after > function on newline with same indentation as function when it would > exceed MAX-WIDTH. > * tests/read-print.scm: Add new tests and update old tests which fail > due to improvements. > --- Great work! 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