From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus 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 18:36:31 +0200 Message-ID: <20200909163631.6f5nq6eiildqv3rv@Ergus> References: <1ca462fa-0f9e-3c18-6386-f43f49388b2f@gmail.com> <20200907180812.5tfylspp7i6vl4o3@Ergus> <94fda087-a61b-356d-4bb4-791907593246@yandex.ru> <24254caf-7505-42fb-a232-a1f38a4c69b2@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2191"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tim Cross , Richard Stallman , Daniel =?utf-8?Q?Mart=C3=83n?= , Emacs developers , nicola.manca85@gmail.com, Dmitry Gutov , "TV. Raman" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 09 18:37:13 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 1kG35t-0000Sf-5F for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Sep 2020 18:37:13 +0200 Original-Received: from localhost ([::1]:44026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kG35s-0004KO-8W for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Sep 2020 12:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kG35O-0003th-3X for emacs-devel@gnu.org; Wed, 09 Sep 2020 12:36:42 -0400 Original-Received: from sonic305-2.consmr.mail.bf2.yahoo.com ([74.6.133.41]:36254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kG35K-0001Y2-Vz for emacs-devel@gnu.org; Wed, 09 Sep 2020 12:36:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1599669396; bh=Z+p+agmYYqAYCwVdZ6TTpdQmVSZoQQiSn3yGNOQ5Cas=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=K0EOmgZIkcDsjHtU+qRowjZVsdfKhiJDUhRFXmbblMZ8rHD44eQFEpu9dFBt4+UKGWlJTedIfFytcpUgaeayReQfXS0ofREC7tG8wvHcRod2WVhfNlVGTiFj3v4HzaKsrwTG8Dz7mylCG/EWBHcYVdO/1hFTkaJtBd5BE/q1j99Vejul3Me/O8fqOvf2N1Vf4rcuj0ANyRVVIgIOD6mKi/HBlBhLZgygKTEsDK9A/wyKZhdnkSRITZAW2afLxReM3hO+cf7PK9XUxyi6FoL70NaB8IdwWigqHdsxs1zGig0rnvnaOfl3wJRRT7mP1axmLCzsObLji1/m4d+tFgypnw== X-YMail-OSG: H_63DWkVM1l44880jAwG.D4w3jP_msKIQdymo3HAFXih2tr2rQJEUug8q7l8Hby Qmx3oBd.qfEWcs4rclAPozNU2b.dY4Dt61FvcAa0pGI253Q3QR9PoVIER3bjcRKcuNKpdOTOa2qq XDsjqUkOWrlnBKBE7Mj4EvjFVIsGttyMkbYovnBbhOl_qD8dfmgEzxp0XV.17SeLaBnVqesYOo75 UmotvLE8HFK8RUEORj.5o0cAjNMqKhkjYmcpz10TECpH2lVT1hOZvCOwSJ9DrGo9aJWMW4WWZQyS vVN7N7shi4zONS2XhGElwqSKVlylJuiiY1PdQTeGIJyHFFgMNF8S7VpBVt8VNuwHH8wTeCEYtedk SfbeUnOs2JrA9tsn2slYOrwFgzyKe7oW8Dl_HMixGYZuZdUdWbpss24wlE0RnyOzMZeLFwV6iI6F QQurbxnQaboXDHgIrn.BnCXBKZ97Vu_2_x9GCRaDdfMCtqfyGftF0qGhqqgdZ.tg0hkkvtVBhckQ FFfFjz3yM9Ph256u8vYRBXLIAhNeQE_86mmMReQaat5MOXl45uMmokNo_osq89bDCq6_PRzk1Z8X BuhpmwyUVYSPOIQD3Zewm8OfqLlXrs.ZxsAdOsHzL0YI3kVAwvaeltgyrUizbHZbZgdrA3pO8SmL BM1WoNJzNxR05cctmeuXo1VzkZkH4c3UC8DIdTef1nednyvaj9iI1uo83AkRQhuP1V.jCoZvzhfr A_XdjFRTC3K2SVx.KFdDwv7AvoAbx6yMQ1enS.78jNdcNYZtTtKAh5QJ_9tBwAEbsIwzd0Bzsl27 Wtwgw1dCrE9Elmkuk.wlk0ZhbZDjYY.088Y4NJkPfV Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Wed, 9 Sep 2020 16:36:36 +0000 Original-Received: by smtp406.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 20b6c80ccbb914cb7c602121779dd68b; Wed, 09 Sep 2020 16:36:36 +0000 (UTC) Content-Disposition: inline In-Reply-To: <24254caf-7505-42fb-a232-a1f38a4c69b2@default> X-Mailer: WebService/1.1.16583 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.133.41; envelope-from=spacibba@aol.com; helo=sonic305-2.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/09 12:36:36 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:254904 Archived-At: 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? > >(I'd prefer that the dir location be the value of >a user option, with ~/.emacs.d/custom as default value. But I think the idea is a good one.) >___ > > >One thing I wouldn't mind having is some kind of timestamp on each `custom-set-variables' and `custom-set-faces' entry. Or something equivalent. 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 comes from seeing an entry and wondering when the hell I added it (or why). ;-) In general having more and more files to read on startup is bad for startup time and organization (not all of us have ssd). Improving the current custom but sorting, grouping or anything is in my opinion a better approach. I would also prefer that the custom file will be separated by default to prevent emacs changing the user's init file so it can be tracked with git without needing: ``` (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) (unless (file-exists-p custom-file) (write-region "" nil custom-file)) (load custom-file) ```