From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Default emacs init file location confusion Date: Mon, 13 Jan 2020 15:36:08 +0100 Message-ID: References: <837e23chdm.fsf@gnu.org> <834kx7cgmh.fsf@gnu.org> <87tv56bjop.fsf@gmail.com> <539DBEA2-E758-4CB0-B886-F908CF0525B6@gnu.org> <83pnfuaqj3.fsf@gnu.org> <83imllc3iq.fsf@gnu.org> <87eew9q4rt.fsf@windriver.com> <83tv538d0q.fsf@gnu.org> <7f532a3b-a812-3088-936c-e15a35b58654@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="267691"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 13 15:41:08 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 1ir0qW-000fry-84 for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Jan 2020 15:37:36 +0100 Original-Received: from localhost ([::1]:51232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir0qV-0001Yo-1u for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Jan 2020 09:37:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40769) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir0pE-0000Pt-CK for emacs-devel@gnu.org; Mon, 13 Jan 2020 09:36:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir0pC-0007Wh-B9 for emacs-devel@gnu.org; Mon, 13 Jan 2020 09:36:15 -0500 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:40768) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir0pA-0007Uy-Kx; Mon, 13 Jan 2020 09:36:14 -0500 Original-Received: by mail-wm1-x332.google.com with SMTP id t14so9900166wmi.5; Mon, 13 Jan 2020 06:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=utvFW5v9cMlERJQNHvVyGCT/+RSmwP7DPEsKx1z8EJg=; b=eIOUL5OabJ+OXR49cr4vBGcGLB7ny0ds7zUeKw0l2REoUdi+lIKvszBRQAY+oNjoi0 5NOHzmCZK7xsM22pxoRB78C15AY/3heHfn8XHLwblB0mXQ1Ar8do3dlFRQmDCXSyp5J0 FkXI/S5zPQa743JmDlHQs+xKAeVuETckXyd+QZu4vdqQxRuKTKN7BAA3lwHKUY+/1eET CEMdMZzIbdhSJai4+JnRnYgcgDnTuqYeW0hF4V4mHC0WTk76iVcP2RQD996hp/k5Px2R HHeqc40/WFcdqn09wbNN6arM3l+ZHLZfBMA9Tvluf3vpl1Q3VHkQOrMaCEilf7t7v0KB 5ykQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=utvFW5v9cMlERJQNHvVyGCT/+RSmwP7DPEsKx1z8EJg=; b=mlw+Lz99l/gohP0r7/aVPTMGrU3QZTP1brFSZynXgMVhDG9M8XHOZqokaxZUkq/Bap UpQ0EmXabOjdnelxunuvp1pEltnG4R6RU8u7wUS+RbIpN9y6RS+Tr01aJvP2RNc22vBe BRIZuOZiX/1gnMHZDDq9XnbG4B8x5i6u7e9zM6tAdFSgH2K3YkvU2A73SL/Ddr00LqJ+ HJ8/Aavt9nofiCFxqc1spECokXV+iJ+9ZsLl4DqVsgIZ+bNcjy7yCKiixnbSMDeY9fJk LmzH5IPBc6BGRcCH7ZFG38VEVt6v15XpUIQvLMutRMDVVJsoQ1fayP5LbJ6kEsT/fxre dTbA== X-Gm-Message-State: APjAAAWpfTWbmls679xA2KavF6sRurWUkGkKsoWGi4EI+o3SAge8froL V+wjcwSM9BX/UEQLjBv2RPlpLV4Z X-Google-Smtp-Source: APXvYqwvrFGmBhlI+7fDV0ITuU69EtXOyxYTuLZn6Hb96u79YGrR87DVGLPmMHxny7SvT/Cc+bqiqw== X-Received: by 2002:a1c:9a84:: with SMTP id c126mr21479998wme.111.1578926170732; Mon, 13 Jan 2020 06:36:10 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id i10sm15509684wru.16.2020.01.13.06.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 06:36:09 -0800 (PST) In-Reply-To: (Robert Pluim's message of "Mon, 13 Jan 2020 08:53:47 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::332 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:244221 Archived-At: >>>>> On Mon, 13 Jan 2020 08:53:47 +0100, Robert Pluim said: Robert> This requires an etc/NEWS update as well. Comments definitely welcome. Any hint of possible ambiguity is to be ruthlessly eliminated. +++ ** Emacs can now use the XDG convention for init files. For example, it can look for init.el in "~/.config/emacs/init.el", and similarly for other init files. The 'XDG_CONFIG_HOME' environment variable (which defaults to "~/.config") specifies the parent directory of these and other configuration files. Emacs will initially look for init files in their traditional locations if "~/.emacs.d" or "~/.emacs" exist, even if "$XDG_CONFIG_HOME/emacs" also exists. This implies that you must delete or rename any existing "~/.emacs.d" and "~/.emacs" to enable use of the XDG directory. If "~/.emacs.d" does not exist, and Emacs has decided to use it (i.e. $XDG_CONFIG_HOME/emacs does not exist), Emacs will create that directory and set 'user-emacs-directory' to point to it. Emacs will never create "$XDG_CONFIG_HOME/emacs".