From: Amin Bandali <bandali@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master d68ed15: Implement and document XDG-style startup files under ~/.config.
Date: Sun, 26 May 2019 09:13:28 -0400 [thread overview]
Message-ID: <87lfytqryf.fsf@fencepost.gnu.org> (raw)
In-Reply-To: 83tvdi2u5f.fsf@gnu.org
Eli Zaretskii <eliz@gnu.org> 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’s not
set or if it’s empty then fall back to ~/.config. If we are doing
this, let’s 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.html
[2]: https://wiki.archlinux.org/index.php/XDG_Base_Directory
Thanks for working on this.
-amin
next prev parent reply other threads:[~2019-05-26 13:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-25 19:47 [Emacs-diffs] master d68ed15: Implement and document XDG-style startup files under ~/.config Eli Zaretskii
2019-05-26 13:13 ` Amin Bandali [this message]
2019-05-26 13:51 ` Stefan Monnier
2019-05-26 14:49 ` Eli Zaretskii
2019-05-26 22:17 ` Amin Bandali
[not found] <20190525172356.30070.65317@vcs0.savannah.gnu.org>
[not found] ` <20190525172357.86D4F207F5@vcs0.savannah.gnu.org>
2019-05-26 22:40 ` Stefan Monnier
2019-06-03 2:32 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lfytqryf.fsf@fencepost.gnu.org \
--to=bandali@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).