emacs-devel
[Top][All Lists]
Advanced

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

Re: Default emacs init file location confusion


From: Eli Zaretskii
Subject: Re: Default emacs init file location confusion
Date: Tue, 07 Jan 2020 19:04:53 +0200

> From: Robert Pluim <address@hidden>
> Cc: address@hidden,  address@hidden,  address@hidden
> Date: Tue, 07 Jan 2020 17:25:21 +0100
> 
>     Eli>     (setq user-emacs-directory
>     Eli>        (startup--xdg-or-homedot startup--xdg-config-home-emacs nil))
> 
>     Eli> and startup--xdg-or-homedot is supposed not to look in ~/.config
>     Eli> unless ~/.config/emacs exists and is a directory.  Or what am I
>     Eli> missing?
> 
> If neither ~/.config/emacs nor ~/.emacs.d exist,
> startup--xdg-or-homedot returns ~/.config/emacs

But that doesn't seem to be the situation described by Elias in his
original report.  He said:

 > After installing Emacs, and starting it once to check that it
 > worked, I checked out my $HOME/.emacs.d directory from source
 > control and started Emacs. At this point, I noted that my init file
 > was not being loaded.

If this means that ~/.emacs.d/ didn't exist when Emacs was first
started, then I think it's OK for Emacs to default to ~/.config/emacs,
because neither of the two possible candidates exist.

So now I don't think I understand the confusion.



reply via email to

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