From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: Re: Emacs 27.1 init file not loading Date: Thu, 20 May 2021 15:27:28 -0500 Message-ID: References: <874kex5xsb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20368"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help GNU Emacs To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 20 22:28:42 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljpHd-00057J-JD for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 22:28:41 +0200 Original-Received: from localhost ([::1]:33198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljpHc-0000ec-BU for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 16:28:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljpGx-0000eH-9k for help-gnu-emacs@gnu.org; Thu, 20 May 2021 16:27:59 -0400 Original-Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]:40809) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljpGu-0005u8-Jz for help-gnu-emacs@gnu.org; Thu, 20 May 2021 16:27:59 -0400 Original-Received: by mail-yb1-xb2b.google.com with SMTP id 191so18632491ybn.7 for ; Thu, 20 May 2021 13:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oS3g8G1Qj+ee7mXs8VsGPN2anyi55yW2wsGi+I+uSgo=; b=dmd5qWAtWI0dIHC8GflJ0B4aDaCjihncU0Pua+DcBYDLFv8AJoAJ585G/03XywZNTF fJvtTNsOONy3AhkG+6psANqMtl/vUg6uo02gELXQokjznFE98QFQw20nmT801hMAGuQ5 Sz10J0VVbvqlZ5/Kuzg9Brmz65T5KA8P/BQre2kBeyKFRTa03IU+lGTjagZZCpZKvp0C MxMz4rvt0t6xRiocwIWer9dyS+DuGVqkP4HRYtcPl5ivDHsqD32RNeWps9Av1DtFPFZX IlYwseifHIaNQ0gebBlLuk9sCKIyElw2CNwYNEqq11w8ZW33ei/6JS1XFMh6nKSrDWWL 0isg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oS3g8G1Qj+ee7mXs8VsGPN2anyi55yW2wsGi+I+uSgo=; b=qpQ9b4h28VlIJL99mSMQhzaXUctXpkL+dLAtdhMMHDaCaxlfszm4NPcVjILvnCVSkq mtHPJl3Kkex2WyW83dGGlq65ZSi292pacc2+UfAkO8oY+g+gkCkEGg4oJvo2ee64IXbl rzX/jlI3dYyc3ojLCDbLpu4lgCiiAqQpjnJOfXzmfe/j2qgIQf8odoBWfTiM8ry/nhCJ qtdPcINGlqram3bqtO9C4UENf4bz+TbeBRttwWpcCJhXdU6Bv8V38yYKv3xoDrCSCFt6 VKaHkNZqP67HZ46WovKktVhgTrrunJHZdDHACZ8J+sRU6GTlMWJ9os7e70MlY9RqZFeC tCTQ== X-Gm-Message-State: AOAM532Kap5+HwzOwiYEZR3dRw5i6LQ6tXunjTCspX40ALFYYdmNmnkK PVKo8c9BzzP+rrdzMzVD8sH02pkArOolWwEJ/AAUgLcpCYRjsLg= X-Google-Smtp-Source: ABdhPJxt0PsSRUMzQa9HqFYpJmBTIwSCbQL9XCLg/O5eUhWnxhzPfdG7XMxbkf0qU8dmGfuHoFrI3V/LrSNGHXxyjFg= X-Received: by 2002:a25:bc41:: with SMTP id d1mr10470501ybk.67.1621542474349; Thu, 20 May 2021 13:27:54 -0700 (PDT) In-Reply-To: <874kex5xsb.fsf@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::b2b; envelope-from=skip.montanaro@gmail.com; helo=mail-yb1-xb2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129988 Archived-At: > What's the value of 'user-init-file' when you run emacs normally > (without the symlink below)? It=CA=BCs possible emacs is looking for > '~/.emacs.d/init.el'. "~/.emacs" I think I figured it out. In this manual section: https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html it explicitly mentions ~/.emacs.el, ~/.emacs, and ~/.emacs.d/init.el. It also states (emphasis mine): Emacs can also look in an XDG-compatible location for init.el, the default is the directory ~/.config/emacs *[this existed but seemed to be ignored]*. This can be overridden by setting XDG_CONFIG_HOME in your environment, its value replaces ~/.config in the name of the default XDG init file. However ~/.emacs.d, ~/.emacs, and ~/.emacs.el are always preferred if they exist, which means that you must delete or rename them in order to use the XDG location. Note also that if neither the XDG location nor ~/.emacs.d exist, then Emacs will create ~/.emacs.d (*and therefore use it during subsequent invocations= * ). I had no XDG_CONFIG_HOME environment variable, so it created ~/.emacs.d (probably silently), so after that, even when I did set XDG_CONFIG_HOME, it still preferred the virtually empty ~/.emacs.d. I set XDG_CONFIG_HOME, removed ~/.emacs.d, and all is once again right with the world. Skip