From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Emacs Modular Configuration: the preferable way. Date: Wed, 23 Jun 2021 10:17:30 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7245"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Arthur Miller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 23 04:18:23 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 1lvsT9-0001ge-A6 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 23 Jun 2021 04:18:23 +0200 Original-Received: from localhost ([::1]:39910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvsT7-0007aR-7r for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Jun 2021 22:18:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvsSZ-0007aJ-60 for help-gnu-emacs@gnu.org; Tue, 22 Jun 2021 22:17:47 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:35505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvsSX-0005g9-3y for help-gnu-emacs@gnu.org; Tue, 22 Jun 2021 22:17:46 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id u13so1504652lfk.2 for ; Tue, 22 Jun 2021 19:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BZds47V2BppzOOqW1WYhDJgf+ChrCWXTuzJO8Gs1ahY=; b=FT2ytazq8z8k9uCdyc/8h6v4piIymNfjAjV68TlBYdtWxkf70Z1Wisc9J5v/JhitE/ UqwuQQZDmt7Qo2I77XrXBcOkw62bpTBqG+/tMC1PXkjEzTItihk6gY+Upa1jTLoG18qI +oIoNGjlPQnHKzwDIKN7NQoo+UBhHlYiusCVyrSrENTablv2QjzkombGCYLhPDg+6e0T ov6V6DC6Au1p5uboWzd3RUvq/BuB1gJjM3iIPe25A5kCM1RW1+IBghW0J5aOOV9QQ8Lg kWOk9ml71M+RCgNUrLv+Vt44qWmA5VX6BcCn0frSOvjuMQDb0ZDQCkQPHJ1ZoUTXuBZh UcNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BZds47V2BppzOOqW1WYhDJgf+ChrCWXTuzJO8Gs1ahY=; b=TLgZ+AnyEy3GE3ng9kn7dFnGnfPv4p6/Ik0w65KrJbZe3uUZkR4xzWYPkcCcNHdYW0 oOBeaOS5OgsrKKoaT5vFI5QMIxaZed37pNaqPHwIikF13EtN0T6E7LARbWl446g3F7v1 n/GH7ExcGEL2E8qL93nSMSKzSS5pHWlqxAZvaReWB00jHlZKFQPN8XmjWH004U0DIYDm 0u42ix5LvLYF40h/ry2GErVzg4GXAi/hAvdANSiP57TZIJBuGwhHIplUYs9/0EyQtrQS aRavCJzWLxy8xdB7q69obIq+p4PyJcNDEmg/2RW2kfNvYM40FKbR/ky2LWknqoK6OMlr xzDQ== X-Gm-Message-State: AOAM532bxu9X3gk5tNdior4fiutSPspG3VTuNG6Ld5Qf1fN1qJ1b7dDX /Ba9/F81fR2QR8d5cj2ElVJIpnUJnXRUoSDy29I= X-Google-Smtp-Source: ABdhPJxwZLeA/EOVEeNkUip/rmR/2KHFXqKH16gIwJ/Ycg23LCsdDOISiPFnQBdXD2fx/vpx+U/QzrFg0kG6BPa11I0= X-Received: by 2002:a19:ad46:: with SMTP id s6mr5215431lfd.466.1624414662526; Tue, 22 Jun 2021 19:17:42 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x129.google.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:131206 Archived-At: On Mon, Jun 21, 2021 at 7:11 PM Arthur Miller wrote: > > 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? TBF, no. Just out of limited intuition. To a large extent, I could be wrong. As you've told, it only relies on git for network operations. HY > > 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. > -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China