From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Default emacs init file location confusion Date: Wed, 08 Jan 2020 22:03:45 +0200 Message-ID: <83zhexaf6m.fsf@gnu.org> References: <539DBEA2-E758-4CB0-B886-F908CF0525B6@gnu.org> <83pnfuaqj3.fsf@gnu.org> <83imllc3iq.fsf@gnu.org> <87eew9q4rt.fsf@windriver.com> <83h815c26h.fsf@gnu.org> <83ftgpc0m1.fsf@gnu.org> <83d0btbz4z.fsf@gnu.org> <83a76xbykf.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="226396"; mail-complaints-to="usenet@blaine.gmane.org" Cc: matthewzmd@gmail.com, rpluim@gmail.com, lokedhs@gmail.com, smartlitchi@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 08 21:16:50 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipHki-000aqW-LL for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 21:16:28 +0100 Original-Received: from localhost ([::1]:48914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipHkb-0005XS-HW for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 15:16:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37360) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipHYC-0004RU-1x for emacs-devel@gnu.org; Wed, 08 Jan 2020 15:03:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ipHYB-0004pW-Lq; Wed, 08 Jan 2020 15:03:31 -0500 Original-Received: from [176.228.60.248] (port=4404 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ipHYA-0008Jt-WE; Wed, 08 Jan 2020 15:03:31 -0500 In-reply-to: (message from Stefan Monnier on Wed, 08 Jan 2020 14:45:31 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244148 Archived-At: > From: Stefan Monnier > Cc: Robert Pluim , matthewzmd@gmail.com, > smartlitchi@gmail.com, lokedhs@gmail.com, emacs-devel@gnu.org > Date: Wed, 08 Jan 2020 14:45:31 -0500 > > (defvar user-emacs-directory > (cond > ((file-directory-p "~/.emacs.d") "~/.emacs.d/") > ((file-directory-p "~/.config/emacs") "~/.config/emacs") > (t "~/.emacs.d/"))) > > Right? Yes (modulo accessing $XDG_CONFIG_HOME).