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: Stefan Monnier
Subject: Re: Default emacs init file location confusion
Date: Wed, 08 Jan 2020 14:45:31 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> If the user created it, sure.  But that is not guaranteed, and if it
> wasn't the user, as we saw, the preference causes confusion and makes
> Emacs behave backward-incompatibly.
>
>> Anyway, I guess I canʼt convince you. We'll just have to be very clear
>> in the NEWS entry.
>
> Yes.  But backward-compatible behavior makes the NEWS entry much less
> important.

I'm not sure human language is clear enough.  So, IIUC, you're suggesting

    (defvar user-emacs-directory
      (cond
       ((file-directory-p "~/.emacs.d") "~/.emacs.d/")
       ((file-directory-p "~/.config/emacs") "~/.config/emacs")
       (t "~/.emacs.d/")))

Right?  If so, you have my vote.


        Stefan




reply via email to

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