emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Implement XDG Base Directory specification for user-emacs-di


From: Stefan Monnier
Subject: Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory
Date: Sun, 09 Jun 2019 14:59:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> I’ve attached my first try at this.  At first it was only concerned with
> lisp/startup.el—like ESR’s change—but then I thought it would be even
> nicer to do it at the user-emacs-directory itself.

I think conceptually, this is indeed the better way to go.
Eli's comments already pointed out some technical difficulties you'll
have to overcome, so I'll limit myself to one more comment:

> * lisp/subr.el (user-emacs-directory): Use "$XDG_CONFIG_HOME/emacs/"
>   if XDG_CONFIG_HOME is set and has an "emacs/" subdirectory.
>   Otherwise, try "~/.config/emacs/" before falling back to
>   "~/.emacs.d/".

I think for simple reasons of backward compatibility, if both
"$XDG_CONFIG_HOME/emacs/" and "~/.emacs.d/" exist, we should use
"~/.emacs.d/".


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]