all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: 2QdxY4RzWzUUiLuE@potatochowder.com
To: help-gnu-emacs@gnu.org
Subject: Re: ~/.emacs vs ~/.emacs.d/init.el.
Date: Sun, 13 Dec 2020 12:58:54 -0600	[thread overview]
Message-ID: <X9ZkbrHyKwA2inFb@scrozzle> (raw)
In-Reply-To: <CAGP6POJL7Vzojr8HAYK13p1Fc9y=n0kNoK0=FvU-LbiEvgmR7g@mail.gmail.com>

On 2020-12-13 at 23:12:39 +0800,
Hongyi Zhao <hongyi.zhao@gmail.com> wrote:

> On Sun, Dec 13, 2020 at 10:53 PM <2QdxY4RzWzUUiLuE@potatochowder.com> wrote:

> > Presumably, ~/.config/emacs is an alternative to ~/.emacs.d, so you
> > would move all of that user data from ~/.emacs.d to ~/.config/emacs.
> > The net result would have been the same if you had renamed
> > ~/.emacs.d to ~/.config/emacs instead of separating the init file
> > from the other user data.
> 
> The above operation described by you doesn't conform to the XDG base
> directory specification given on its official website
> <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>.
> To be more specific, see the following exceptions from there for more
> info:
> 
> Environment variables
> 
> $XDG_DATA_HOME defines the base directory relative to which user
> specific data files should be stored. If $XDG_DATA_HOME is either not
> set or empty, a default equal to $HOME/.local/share should be used.
> 
> $XDG_CONFIG_HOME defines the base directory relative to which user
> specific configuration files should be stored. If $XDG_CONFIG_HOME is
> either not set or empty, a default equal to $HOME/.config should be
> used.
> 
> So, if we want to let emacs fully comply with this specification, then
> the data should be put under $XDG_DATA_HOME while the config files
> should be put under $XDG_CONFIG_HOME. So, the conclusion should be
> drawn as follows:
> 
>  Emacs data, say, user installed packages  ------>  $HOME/.local/share/emacs
>  Emacs config files, say, init.el  ------> $HOME/.config/emacs

That analysis seems sound, but I'm not up on XDG standards or the latest
emacs thought processes enough to be sure (and Lisp furhter blurs the
line between data and config, not to mention code).  Perhaps the emacs
maintainer(s) can clarify on this thread, or perhaps you could file a
bug report.

Eli?  Stefan?

FWIW, I'm sticking to my very old ~/.emacs.el file and a few explicitly
loaded files under ~/.emacs.d.



  reply	other threads:[~2020-12-13 18:58 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-13  9:00 ~/.emacs vs ~/.emacs.d/init.el Hongyi Zhao
2020-12-13  9:06 ` Christopher Dimech
2020-12-13 10:09 ` Yuri Khan
2020-12-13 13:50   ` Hongyi Zhao
2020-12-13 13:56     ` Tim Visher
2020-12-13 13:58     ` 2QdxY4RzWzUUiLuE
2020-12-13 14:38       ` Hongyi Zhao
2020-12-13 14:44         ` Tim Visher
2020-12-13 14:52         ` 2QdxY4RzWzUUiLuE
2020-12-13 15:04           ` Tim Visher
2020-12-13 15:12           ` Hongyi Zhao
2020-12-13 18:58             ` 2QdxY4RzWzUUiLuE [this message]
2020-12-13 19:12               ` Eli Zaretskii
2020-12-13 14:06     ` Perry Smith
2020-12-13 14:31       ` Hongyi Zhao
2020-12-13 19:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
  -- strict thread matches above, loose matches on Subject: below --
2007-06-13 10:00 Juanma Barranquero
2007-06-13 17:28 ` Eli Zaretskii
2007-06-13 17:34   ` Juanma Barranquero
2007-06-13 17:53     ` Eli Zaretskii
2007-06-13 17:57       ` Juanma Barranquero
2007-06-21 18:54 ` Davis Herring
2007-06-21 19:18   ` Juanma Barranquero

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=X9ZkbrHyKwA2inFb@scrozzle \
    --to=2qdxy4rzwzuuilue@potatochowder.com \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.