From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Custom Et Al: Build-Up The Underlying Platform was Re: A new user perspective about "Changes for emacs 28" Date: Wed, 9 Sep 2020 09:41:19 -0700 Message-ID: <24409.1455.180452.50280@retriever.mtv.corp.google.com> References: <1ca462fa-0f9e-3c18-6386-f43f49388b2f@gmail.com> <20200907180812.5tfylspp7i6vl4o3@Ergus> <94fda087-a61b-356d-4bb4-791907593246@yandex.ru> <24254caf-7505-42fb-a232-a1f38a4c69b2@default> <20200909163631.6f5nq6eiildqv3rv@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: drew.adams@oracle.com, theophilusx@gmail.com, rms@gnu.org, mardani29@yahoo.es, emacs-devel@gnu.org, nicola.manca85@gmail.com, dgutov@yandex.ru, raman@google.com To: spacibba@aol.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 09 18:42:35 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kG3B4-0006Ka-Om for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Sep 2020 18:42:34 +0200 Original-Received: from localhost ([::1]:53314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kG3B3-0008Iq-Rp for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Sep 2020 12:42:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kG39y-0007B6-6a for emacs-devel@gnu.org; Wed, 09 Sep 2020 12:41:26 -0400 Original-Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:36694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kG39w-0002QP-FW for emacs-devel@gnu.org; Wed, 09 Sep 2020 12:41:25 -0400 Original-Received: by mail-pg1-x544.google.com with SMTP id f2so443912pgd.3 for ; Wed, 09 Sep 2020 09:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=zQRpzypC5/d8Z65Eao2oMQyr8QZryjwIY6G+V+eaMrU=; b=lWHg0w/I9ZEm9vofb8ZG/pTdywvMyzCoetOYpeqZvX2zyfVddtaALAxj001Cjk4bB2 EUxZ8Vo9ZJRpbUgT5Bts7YbfFZXl5qt9oQaH9jbl6p2VWHVv3oG9sX73AD8MMquaTff0 5HfAr38SkpTnTmijX3W7cjs9hQQUG4pfuXPlAt0FmoAlnHmgNU4w8OrzpsG+wQkgv1Wr +uSVPIIwrmoBm05icq8Hn26PzFCTLmA8nBk/kiLT2XGRGd8gAvhVr2Vn6epxon97CXq9 vM4AUqg++IJi3+grvlmgoBJDDxAEKoE+neBzcMURkMS2klacsB9DdDeSsTavP3pwT8YX LJDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=zQRpzypC5/d8Z65Eao2oMQyr8QZryjwIY6G+V+eaMrU=; b=LV8YmmH3JfStlh/45nSAs/v8h9rSVHin9mHK3BiX4AO1MGkcf32UU2A4g+Z0zu2Unv ndiPD+WiZBLRoAK9iuHXU7Jo5tgvt2jEGXFq34Ekfyjab5plsinPddlLb6tBD1NUevfi pV8sBuhuvs6TmDJVZ9H+fCXkOuHkZ+ZOk/FVIc9WNiXtM6NfmP0qh7jxQizWpL68jaMZ W+hfscE6T6bnbPGZ1X1OaF+9rJDFvoK6YOM9PmU9q8vcDCIXG1p4T3/EDJFXcQ697+m9 tYmTQyfhQ/ovPYvdQgc9sr0/hiEUKOSxrfhzwVq/kBg0U9JPC6dCUoegygMi3IXN12/a PsZQ== X-Gm-Message-State: AOAM531HnqYCEqk4TkCSY7wDAzuT7rZ1Y5RPeWjaCZYC4lRQsLPZBvRD iI6i8S2h2+i3QrbTtoK+Hd8TGg== X-Google-Smtp-Source: ABdhPJwRXfxPEq6JebpnURwJng4L6ZCGzmm2zeGt1sazYqPTAmxTlzaoJPWQP4z8QjDpnMBWBKoGoQ== X-Received: by 2002:a17:902:b191:: with SMTP id s17mr1572054plr.128.1599669681578; Wed, 09 Sep 2020 09:41:21 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([172.22.80.201]) by smtp.gmail.com with ESMTPSA id s129sm3258108pfb.39.2020.09.09.09.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 09:41:20 -0700 (PDT) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 3DB96180038A; Wed, 9 Sep 2020 09:41:19 -0700 (PDT) In-Reply-To: <20200909163631.6f5nq6eiildqv3rv@Ergus> X-Mailer: VM 8.1.1 under 28.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::544; envelope-from=raman@google.com; helo=mail-pg1-x544.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -211 X-Spam_score: -21.2 X-Spam_bar: --------------------- X-Spam_report: (-21.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-3.576, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254906 Archived-At: If loading multiple files is an optimization concern, that can be dealt with in a manner similar to package-quickstart ---=20 Ergus writes: > On Wed, Sep 09, 2020 at 08:53:14AM -0700, Drew Adams wrote: > >> From: Tim Cross ... > > > >Lots of interesting suggestions and observations. > > > >In particular, this one: > > > > rather than the 'custom section' or custom file > > would be to have custom write individual files > > into a ~/.emacs.d/custom directory=3F > > > >(I'd prefer that the dir location be the value of > >a user option, with ~/.emacs.d/custom as default value. But I thin= k the idea is a good one.) > >=5F=5F=5F > > > > > >One thing I wouldn't mind having is some kind of timestamp on each = `custom-set-variables' and `custom-set-faces' entry. Or something equi= valent. Or optional sorting by recency of modification. Or maybe such= info in a separate log file. > > > >Just a spur-of-the-moment thought, not carefully considered. It co= mes from seeing an entry and wondering when the hell I added it (or why= ). ;-) >=20 > In general having more and more files to read on startup is bad for > startup time and organization (not all of us have ssd). >=20 > Improving the current custom but sorting, grouping or anything is in= my > opinion a better approach. >=20 > I would also prefer that the custom file will be separated by defaul= t to > prevent emacs changing the user's init file so it can be tracked wit= h > git without needing: >=20 > ``` > (setq custom-file (expand-file-name "custom.el" user-emacs-directory= )) >=20 > (unless (file-exists-p custom-file) > (write-region "" nil custom-file)) >=20 > (load custom-file) > ``` --=20 =E2=99=89Id: kg:/m/0285kf1 =F0=9F=A6=AE=E2=99=89 -- ♉Id: kg:/m/0285kf1 🦮♉