emacs-devel
[Top][All Lists]
Advanced

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

Re: user-directory: New library to find user {conf, data, state, ...} fi


From: Eli Zaretskii
Subject: Re: user-directory: New library to find user {conf, data, state, ...} files
Date: Sun, 07 Nov 2021 21:52:43 +0200

> From: Stefan Kangas <stefan@marxist.se>
> Date: Sun, 7 Nov 2021 11:31:50 -0800
> Cc: emacs-devel@gnu.org
> 
> Note that on GNU/Linux, even if the user has their configuration file in
> "~/.emacs.d/", the library currently prefers the XDG paths here:
> 
>     (user-file 'cache "image-dired")
>     => "~/.cache/emacs/image-dired"
> 
> This is a feature.  If users prefer not to have a clean "~/.emacs.d/"
> they can say:
> 
>     (setq user-directory-alist '((cache . user-emacs-directory)
>                                  (config . user-emacs-directory)
>                                  (data . user-emacs-directory)
>                                  (runtime . user-emacs-directory)
>                                  (state . user-emacs-directory)))

This contradicts how Emacs by default finds the init file: its
preference is the other way around, and it sets user-emacs-directory
according to the directory from which it loaded the init file.  I
don't think I understand why this package should behave differently by
default (it could do that as an opt-in option, of course, if that is
considered useful to someone).



reply via email to

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