From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Emacs 27.1 init file not loading Date: Fri, 21 May 2021 11:01:23 +0200 Message-ID: <87v97c4g0s.fsf@gmail.com> 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="35840"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help GNU Emacs To: Skip Montanaro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 21 11:02:03 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 1lk12h-00095z-9Q for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 21 May 2021 11:02:03 +0200 Original-Received: from localhost ([::1]:48636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lk12g-000437-0l for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 21 May 2021 05:02:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk129-00042o-GL for help-gnu-emacs@gnu.org; Fri, 21 May 2021 05:01:29 -0400 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:50886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lk127-0000My-Ik for help-gnu-emacs@gnu.org; Fri, 21 May 2021 05:01:29 -0400 Original-Received: by mail-wm1-x329.google.com with SMTP id t206so10714931wmf.0 for ; Fri, 21 May 2021 02:01:26 -0700 (PDT) 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:content-transfer-encoding; bh=StjeZnmmYQ8jhhGXBwCWiLyYUeIF5uWtnxNQwcYxGKA=; b=kD3qFsbFDt5gkmF/HWEqVGY7uYAEzdqpWcpmW3fE3Sh16Dl+XJcOKSPNSrD4TNWV0g Vmu+shQKq2DD0+Nno2MSy7qbhaVJK9rxSnwg1/+8K8R/1V0sH8mywmlA7FQu6fqj2STv iyreTMzPikuCtUDj8TtCfZQAouyFE2PDgo+jBMG1Ui2clScyFutrNC0i73W3206llHM6 H8dICQZEQLZHrVaj57yBKu1Ygd16dKFq4OkO6kqtPNH4tt37pBNll3yqwJI74q4EaE8q Bbuxs+KLwkQVsMzQ6IlfnbpLHQh3PY+z3xv9toTAfjZ+RXffdM+x0zjKRpddzLSiIDK5 EHYw== 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:content-transfer-encoding; bh=StjeZnmmYQ8jhhGXBwCWiLyYUeIF5uWtnxNQwcYxGKA=; b=dnjgoEmGkjYdrcvUoX0nr+L5FGy12TSMXddhuW6jJvh2XhvEPTBkGpH2BO87cREfjg 4gzFCz30DQ+UppVTu/VOuQAWU1TsMJaAFPG2iuhl5orhmCurtjNU4vlHyKdvT8vvRUX4 Bj2BaD56gFpjrrYSRn2MMtLSd2tpc8eezroYWJ4+rWZjB1cEa2mkhLCaOSg08YNJOzZR OGkAlttWVbLeoJB/NDHSVUvAo547B/GW5elk4kfhCDyapduGICsrhmCOaL0SFIGCo8N3 xZAtFIsRdjXdsS4/ZgDEUDKM8iW1CfG6nMJGLpbllBqtgfFk7+71K+7zer4Eav/BNFxL OpgQ== X-Gm-Message-State: AOAM530np2RZKp7UkrjR9qKnBKPVL5bwyHahRjmtQPMKlWOFQwO9R+Qa 8u51v/mg6ye1VrPvREXY/pOkeeS3+70= X-Google-Smtp-Source: ABdhPJzwSxZNrIU7TuUShEFsCCB6GXed4MsNHzs750AiEIhoYvk/4VfqNc6fEir7uQr8QHZsRK1wBA== X-Received: by 2002:a05:600c:4fd0:: with SMTP id o16mr8136110wmq.137.1621587684760; Fri, 21 May 2021 02:01:24 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id c22sm5451102wmb.10.2021.05.21.02.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 02:01:24 -0700 (PDT) In-Reply-To: (Skip Montanaro's message of "Thu, 20 May 2021 15:27:28 -0500") Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=rpluim@gmail.com; helo=mail-wm1-x329.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, 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-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:129991 Archived-At: >>>>> On Thu, 20 May 2021 15:27:28 -0500, Skip Montanaro said: >> 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'. Skip> "~/.emacs" Skip> I think I figured it out. In this manual section: Skip> https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-In= it.html Skip> it explicitly mentions ~/.emacs.el, ~/.emacs, and ~/.emacs.d/init= .el. It Skip> also states (emphasis mine): Skip> Emacs can also look in an XDG-compatible location for init.el, th= e default Skip> is the directory ~/.config/emacs *[this existed but seemed to be = ignored]*. Skip> This can be overridden by setting XDG_CONFIG_HOME in your environ= ment, its Skip> value replaces ~/.config in the name of the default XDG init file= . However Skip> ~/.emacs.d, ~/.emacs, and ~/.emacs.el are always preferred if the= y exist, Skip> which means that you must delete or rename them in order to use t= he XDG Skip> location. Note the 'are always preferred' bit. Skip> Note also that if neither the XDG location nor ~/.emacs.d exist, = then Emacs Skip> will create ~/.emacs.d (*and therefore use it during subsequent i= nvocations* Skip> ). Skip> I had no XDG_CONFIG_HOME environment variable, so it created ~/.e= macs.d Skip> (probably silently), so after that, even when I did set XDG_CONFI= G_HOME, it Skip> still preferred the virtually empty ~/.emacs.d. I set XDG_CONFIG_= HOME, Skip> removed ~/.emacs.d, and all is once again right with the world. If XDG_CONFIG_HOME is unset, then emacs looks in ~/.config/emacs. I wonder if you were initially running a version of emacs that used ~/.config/emacs/init.el even if ~/.emacs.d existed, but that was changed before the emacs27 release. In any case, I=CA=BCm glad you solved it. Robert --=20