From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Emacs Modular Configuration: the preferable way. Date: Mon, 21 Jun 2021 13:10:58 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37930"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 21 13:12:48 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvHrD-0009in-Ly for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 13:12:48 +0200 Original-Received: from localhost ([::1]:34602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvHrC-0002j7-NP for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 07:12:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvHpb-0001lI-TD for help-gnu-emacs@gnu.org; Mon, 21 Jun 2021 07:11:09 -0400 Original-Received: from mail-oln040092071033.outbound.protection.outlook.com ([40.92.71.33]:6183 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvHpX-0007Sy-1u for help-gnu-emacs@gnu.org; Mon, 21 Jun 2021 07:11:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XlTXGkejYK8TpIguYb0YODTqKlOXU3TslQR1xV9tZ8JaP3hkPUm4TbCR5QJfimeo9qe2qlGCQbYFcnvGx5W5/Cl6vpzM9IIcT61lQ8qLquQRKIk9X70pfDwEfJOAdGEke3I8Y2/v6Y+mAmu+d+IkWDAkxfbt35wrEWmbDh7U5g4/x+NcQQtF6i9aTJN2G2ch+cciifAKX0Ap6IbK2Mw1Lwx8Da3WCIYfYtOpgVQjjdrTE8/evaCT8yVMUKwqFSJ/pT+m9WY+dUkoC2YLg0ssgqgAMZ3INexVtQqbjyr4HqqBjEEUO4QyCay5kDAhwlVZLo6BgGRkXDNC0cZexd0mFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ehUjnWwrquTp/b2IqACHpUuasMr9ebGpTMG40sXyrWk=; b=a+W7YSobYaGAMsZ9o/ZA60M3tnUYxorZI1n2pgNvTxOcNjn07V+cWKUq9UG/CYGYoeiGSNuK21eXkqdDRQ5OHeFWGBrDMIkqDbpsSVkh9GxJjGoosY/840Cfq5fWCc8aCg2fDNtqYMtN/Sawxwq1uBq1nJ6H3r95Gn4ypak40yDyrgn+SvZi6g6O3cXmUzhxxOVvT5bfVPhN0Vre25dyxeCg7dG3jhLm8AK3CjPJbgGdT5Fpt4WAYt6jWWhyugKoV05PXllLe2Y7Z1Z3u/dusZJP3GDcDSGrwVdTkph+t5TCAhOJUT+lyNq6PdQs0KCWqZPT0fXUXoQHlyhCaRCzWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ehUjnWwrquTp/b2IqACHpUuasMr9ebGpTMG40sXyrWk=; b=Y7NcLiyr2tzlkUBjOQB/QU/W0Jg+BJWcgqMSxYnSYD0gBg9PiVSrdIWH17RBRGgxJN0ZpNWu4PunZ1DGVBssT3ZIQ8OJZ/sZn1AEenuEygTWWaszcUrrKkrNA1Y0Ey+5uQDSr6XYWqNODiJWepmcfDiL53i1CRiQZ/wl5NDw4hpdLrxRQzGk/OG7LUkTmPLFV2wykmNWPIt6ZEiofn5G0cufbTXdl3ZwnuV06Vm4j4xU9pfxqMTANcokklu3TcjhpH5IzFf6DS2gGuIkY6Hr4WPA+mCv3RGapx/n9FJgG38RZ61aQK1aAlIXBAhfkRIaUasuSsGosECSUUDwhiviPQ== Original-Received: from AM5EUR03FT050.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e08::4e) by AM5EUR03HT118.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e08::196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16; Mon, 21 Jun 2021 11:10:59 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e08::4d) by AM5EUR03FT050.mail.protection.outlook.com (2a01:111:e400:7e08::303) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Mon, 21 Jun 2021 11:10:59 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:F2A062CDDFCF5081D5197E35A6CE37A59340995B29945A6E3B7A203C23FABAF2; UpperCasedChecksum:6F3BE0CAFE97DE7C98EEB483BF80F30B78F99ACDC70375D15114B163C6A0E4DF; SizeAsReceived:7763; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::51ca:cb30:2619:5219]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::51ca:cb30:2619:5219%7]) with mapi id 15.20.4242.023; Mon, 21 Jun 2021 11:10:59 +0000 In-Reply-To: (Hongyi Zhao's message of "Mon, 21 Jun 2021 18:26:50 +0800") X-TMN: [BkJaY2KYkPJTAtSWyoIFp+N2I36NdjvA] X-ClientProxiedBy: AM5PR0402CA0016.eurprd04.prod.outlook.com (2603:10a6:203:90::26) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <878s33scal.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM5PR0402CA0016.eurprd04.prod.outlook.com (2603:10a6:203:90::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Mon, 21 Jun 2021 11:10:58 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 6e322ce8-5f37-4ae6-09bf-08d934a53f6d X-MS-TrafficTypeDiagnostic: AM5EUR03HT118: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aYxyAwU++RKPzhQ91dvLKUpEVP+qN6MIDi3MUzfeV4yv2w4b4fZR9mEgT2/D9uahIABmfGnKBgegZOpuHrW2ll1c0muE49l/l33FksjPw0AbtmilN2w8SfFRpIBasI61dqVh11pdi/MMLlxhU1Vfc6z9L6rc/RrE7DTwkkSbpvFcs9qCIYCDluuMihX2TFIFL5Y94HlhJcgEsMs/phomrJkrc4xXgTiS8Ak1o2vtIXkBn7COZ52wqCwpqLRBr5DVDHBQCH20uN1TKxW2VvaqxSRC+jjB5pNq2QdilplTpFgX9cBLKYawo4wtzWWWLZSY9LKWbpFZ8rUZKqserVPV5KitiNxgDyqnhY3ayxN98E4Cw1oCXDZLiPuUL2LFrkLgPZIhbLEa10Pn7hARHo/GZPoBbGeMciDuLvZQ4DGycYbWtSSk/LasQIjbFUAvXX98U5fshsbtU22uYquF5r3WF9AUACZ20CQmFdNwGN5zeao= X-MS-Exchange-AntiSpam-MessageData: Vt4BR+kg5kpTTzMxIu3z3e+tpaebJp38+jZ3THp+0LNlm4MKLzrPl84goSrCwwGQhrtZN9FMdk2xltJuIfSsUHH+7cR845jYsiqTo4Nc2s7PcGoweEdfp7iuvUQKUWD2x614ly38+WNGODQt/fOvBQ== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e322ce8-5f37-4ae6-09bf-08d934a53f6d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2021 11:10:59.2096 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT118 Received-SPF: pass client-ip=40.92.71.33; envelope-from=arthur.miller@live.com; helo=EUR03-DB5-obe.outbound.protection.outlook.com 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131136 Archived-At: Hongyi Zhao writes: > On Mon, Jun 21, 2021 at 6:06 PM Arthur Miller wrote: >> >> Hongyi Zhao writes: >> >> > On Mon, Jun 21, 2021 at 2:40 PM Jean Louis wrote: >> >> >> >> * Hongyi Zhao [2021-06-21 04:51]: >> >> > Dear all, >> >> > >> >> > I noticed the following instructions/tools for Emacs modular configuration: >> >> > >> >> > https://www.emacswiki.org/emacs/DotEmacsModular >> >> > https://www.emacswiki.org/emacs/DotEmacsStructuring >> >> > https://github.com/emacs-jp/init-loader >> >> > >> >> > There are so many ways to do this. What's the preferable way? >> >> >> >> Whatever you wish and want. You can feel if you need multiple files or >> >> not. Solutions are very individuals. >> > >> > For now, my demand is as follows: >> > >> > 1. Use straight and use-package as the package manager. >> >> Why? Some special reason? > > For working/dealing with all packages, regardless that they are hosted > by Emacs package repos or not. Straight works with git perfectly, and Which opens for a vulnerability which was discussed on emacs-help some few months ago. Of course it is your personal choice what you will download and use, but I would be very careful to just download stuff from git without looking at it first. >> Why? Just for sake of calling it or you have some better reason? > > Same as above. I get that "granularity" you speak above without need for 3k+ lines of code :). >> >> > 3. Better granular control based on different major mode, popular >> > programming languages. >> > >> >> You don't need straight, nor any special package for this, it is how >> you structure your code. Check here, granularity is per package (mostly): >> >> https://github.com/amno1/.emacs.d/blob/main/init.org >> >> Nothing external required, just built-in stuff that comes out of the >> box. Package.el is used to fetch packages from elpa/melpa and few >> simple macros to save some typing, not even use-package needed and I >> think it is pretty structured init file. I can even configure >> early-init.el as it was a hook, which lets me structure entire init >> process in one place. > > From my experience, package.el's package fetch mechanism/speed is > fragile and very poor by comparison > with straight. Really? Does straight.el implemnt it's own network stack? I thought it uses Emacs facilities, same as package.el. Do you have any numbers to back up your opinion? Since you are so experienced and already have made your mind I don't see the point of even asking. Especially since author of package.el have already done all the "thinking" for you, at least as he puts it on the project page: "straight.el frees you from needing to think about package management, since I already did all the thinking to figure how best to design everything." :D I just have no comments on that one.