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 12:06:50 +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="32773"; 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 12:47:22 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 1lvHSc-0008KG-LY for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 12:47:22 +0200 Original-Received: from localhost ([::1]:49448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvHSb-0004yC-DU for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Jun 2021 06:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvH44-0005mG-OU for help-gnu-emacs@gnu.org; Mon, 21 Jun 2021 06:22:00 -0400 Original-Received: from mail-vi1eur06olkn2070.outbound.protection.outlook.com ([40.92.17.70]:40128 helo=EUR06-VI1-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 1lvH42-0003gJ-Jr for help-gnu-emacs@gnu.org; Mon, 21 Jun 2021 06:22:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HkLhkp7otuzhT3lXP3Ar9kAM7yFosPIWQRIV+w/JAoZ7MQQrpuBtSco4ui1rwzsAEXE7HukuM1cpkWpdOhZ1mHDRDxbgbX/O/g8rJ33O4y0F6xXNmY0994+Np4Xgba0oJFeeo4iQVP2Ip9S1OiK8MRqBp17r8gtl6vcEGq3hfHV6m4I2czhVx9cRNnLznBX2+Ia+as6U/gbe3N9qEaKWvyFeFQdkvNr49ttk8c46hjkUPgX1ekEM67CwLYKGLcX52be+H7RaYjXAaYIZYU+9ysrv8MnJ1gIISbANFeNYDX6qIRUIvY9wyvRpBdq2FTaXX4ZKMkGoCfbuH9Fo4liJMw== 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=Z6vse/v6cHdMcWvsTg9hJBZQDXXyGwS4dgw2a05R0ak=; b=nw3hM5fyb0Dpq63mSFNoZE7PCev50yDYwKhVd+X+6Ne7ClUx51SFeAW9Huh3+RGsEcGh5ZXEgXR/qZl2+jRHEzlRhORE0gS9PGlW0CHQQhxbmbV+73U3YNgmNLLHru1EE4yTzZcTotirDBafzASXCL/03Ztm6iCRJe95EFa37oIB6Rz3GC6mK0fhoWJaCOWWp5TLQ3rzmY20UdhO1IgPGM22W25m+Kxqf85wUpbLnf2Enw+UNQXtPVl3E57SPFxGNv5HMegfaQHBwrK1c00FH4mGWA2fA6xOspuXl+crxS4QpOFHnjABJozF+0XkxQprejlM986xj1OVPpfsMyQ/7Q== 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=Z6vse/v6cHdMcWvsTg9hJBZQDXXyGwS4dgw2a05R0ak=; b=VloTjiOH+BHJzanYG+G52hz+nRaydAaRTqGiY0ce6fW8DBXFuGGz25cau3xR7sJisMMtuoZoB9T3qpL9YX3U19fOG8gneKjDrUqWKR5xgNkroLdrYcw0CNRc/j0UsnzbYKW2bWb/+Zuo2TvU+BUcqLORUPbFSPXcabFbGe8opY9oQlHlNSKB97uOI5aLJ7u9wUyBuvJEz7WQzOvBdsTzT7bfu9HlCPo2m3GbIsKajFiOKfITSARnj1FoHdZf2XpHHYAav19y66YvbO6sZodtJtVq2Kew4G2z2MdlrWpbVvjhsQkjKZmkQcpHD1D9AIcwNty+m0K6oVSp4NB5bsoKGQ== Original-Received: from VI1EUR06FT012.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::4a) by VI1EUR06HT232.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc37::160) 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 10:06:53 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc37::40) by VI1EUR06FT012.mail.protection.outlook.com (2a01:111:e400:fc37::164) 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 10:06:53 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:4647821C08A681EA8CDBB23C04E4F0662B59329AC011FAB5B6CAC9D138014450; UpperCasedChecksum:28F7C63FC14DB508A4C3AFE510AD1E7556646C95D9087B680C3BB29EE19F630E; SizeAsReceived:7595; 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 10:06:53 +0000 In-Reply-To: (Hongyi Zhao's message of "Mon, 21 Jun 2021 15:00:58 +0800") X-TMN: [GAND584gdcj9WN2f/1hwHSkAyJkFtkSy] X-ClientProxiedBy: AM6P193CA0120.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::25) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87h7hrsf9h.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6P193CA0120.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15 via Frontend Transport; Mon, 21 Jun 2021 10:06:52 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 116c89c9-447a-4556-74d6-08d9349c4adb X-MS-TrafficTypeDiagnostic: VI1EUR06HT232: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tbeQvorTIM10SVXqvcIAWl5XU6Z2/v65KLLW8fHfq0mTrY4cKXyDVjv1uOEcKRFZFBYhcOWCz41Yfj/+GLbQQm9/3pwiLx1b9m8xHHfjWbGZ1HgiorKvRAUFlUL2Vn4NVGSsat8tiOK6qQM8ENkNEiYFeXbb96+yx66/xNxPOAkp8a7P5L9hyp4uSCGvJq5Mo35GMNXcvfymp5ccBh0KeWtpzrHi0H9rtHemvpMIIg9lsj4cz8tonPG/O+BAuBb4F12zdc7QXWxP9wJEcDHmuSmB3APB4WcDB6VsOJP+7rht5xH5r7FTO5yZI0tXjrfnq1Ql1OHOwahSdVMYYYSflOg7tI1qWP/SiYErSY37D7m743duGffnM4svdKAwtWZQAGyRnc8gkKzjoTlvoEf58CcmFoA65w24JPjctpNKKqrJb25sHyl8eud2v4bzicrVqux9bjNo2Boyub/4l5NXk0rTQ2Y3tKVyBZerAgfF/bM= X-MS-Exchange-AntiSpam-MessageData: xy0EEHOFIyYmAzR6YGIq2ILvWKzD6maWejWlUqx8SIrdcxshkOJAmfJudJ0O4XWJxPi29SxpBVsGBQmLGUgeF2ddWX/Jw4k25NLzJs9pxXEhziziBZ92QSAWxtqkehzEVB/ZadKfGE+QGMC7xoUDCw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 116c89c9-447a-4556-74d6-08d9349c4adb X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2021 10:06:53.3856 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR06FT012.eop-eur06.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: VI1EUR06HT232 Received-SPF: pass client-ip=40.92.17.70; envelope-from=arthur.miller@live.com; helo=EUR06-VI1-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:131133 Archived-At: 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? > 2. All packages configuration file should call 1., especially for a > testing scenario when debugging a package/several packages. Why? Just for sake of calling it or you have some better reason? > 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.