From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master d68ed15: Implement and document XDG-style startup files under ~/.config. Date: Sun, 26 May 2019 09:13:28 -0400 Message-ID: <87lfytqryf.fsf@fencepost.gnu.org> References: <83tvdi2u5f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="175655"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 26 15:13:46 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hUsyA-000jZ2-6w for ged-emacs-devel@m.gmane.org; Sun, 26 May 2019 15:13:46 +0200 Original-Received: from localhost ([127.0.0.1]:55327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUsy8-0003gI-QB for ged-emacs-devel@m.gmane.org; Sun, 26 May 2019 09:13:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUsxx-0003g0-At for emacs-devel@gnu.org; Sun, 26 May 2019 09:13:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUsxw-0003D5-IO for emacs-devel@gnu.org; Sun, 26 May 2019 09:13:33 -0400 Original-Received: from [192.159.176.171] (port=52804 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hUsxv-0006no-Be for emacs-devel@gnu.org; Sun, 26 May 2019 09:13:32 -0400 Mail-Followup-To: emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237015 Archived-At: Eli Zaretskii writes: > Eric, > > This change must be documented in NEWS. I also think we should have > discussed such a significant change in behavior before pushing the > commit. > > Thanks. > > Seconded. Some comments about d68ed15: - It hard-codes ~/.config, whereas the XDG Base Directory specification specifies that $XDG_CONFIG_HOME should be consulted and if it=E2=80=99s n= ot set or if it=E2=80=99s empty then fall back to ~/.config. If we are doing this, let=E2=80=99s try to do it properly from the start :) - The convention for programs adhering to the spec is to keep their files in a subdirectory of $XDG_CONFIG_HOME named after the program itself. For instance, i3 would use $XDG_CONFIG_HOME/i3 and msmtp would use $XDG_CONFIG_HOME/msmtp. So, I think it would be best for Emacs to use $XDG_CONFIG_HOME/emacs instead of the proposed $XDG_CONFIG_HOME/emacs.d, and put all emacs-related things in it. In short, the paths would look like: - ~/.emacs -> $XDG_CONFIG_HOME/emacs/emacsrc - ~/.emacs.el -> $XDG_CONFIG_HOME/emacs/emacs.el - ~/.emacs.d/init.el -> $XDG_CONFIG_HOME/emacs/init.el I also suggest adjusting the custom-file examples to the following respectively: - $XDG_CONFIG_HOME/emacs/custom-21.el - $XDG_CONFIG_HOME/emacs/custom-22.el - $XDG_CONFIG_HOME/emacs/custom.el The specification is available from [1], and the ArchWiki page [2] provides a helpful summary, as well as a long list of programs supporting the spec and links to their implementation commits. [1]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.8.h= tml [2]: https://wiki.archlinux.org/index.php/XDG_Base_Directory Thanks for working on this. -amin