[Top][All Lists]

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

Re: Default emacs init file location confusion

From: Robert Pluim
Subject: Re: Default emacs init file location confusion
Date: Tue, 07 Jan 2020 17:25:21 +0100

>>>>> On Tue, 07 Jan 2020 18:12:44 +0200, Eli Zaretskii <address@hidden> said:
    Eli> Thanks, but how did user-emacs-directory get set to ~/.config/emacs if
    Eli> that directory didn't exist to begin with?  The code in startup.el
    Eli> does

    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, which goes all the
way back to 2befb4f0a1494f699f56215d5f28ba055663d881

Iʼm sure this was discussed back then, but I donʼt remember all the


reply via email to

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