From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: ~/.emacs vs ~/.emacs.d/init.el. Date: Sun, 13 Dec 2020 21:50:37 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="501"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 14:51:29 2020 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 1koRmb-000AYq-5s for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 14:51:29 +0100 Original-Received: from localhost ([::1]:41326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koRma-0001O7-6L for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 08:51:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koRm6-0001Nl-8e for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 08:50:59 -0500 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:43446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koRlz-0006UW-Dk for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 08:50:56 -0500 Original-Received: by mail-lf1-x134.google.com with SMTP id 23so23452022lfg.10 for ; Sun, 13 Dec 2020 05:50:50 -0800 (PST) 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=tXZPZhx5KesOp8VxK/hqqde7S73nZ/IjsBKyCbDgsAM=; b=TTENiL6BHk4yQTqX7xT9VgornWWul29Je8CaHu8MOFqkCwgmnN4ricJ4wtaTWlrTbO sBdU+R3hxAm4OkhX62Fj6vgvcKSXHlGYath4avrMefD6CrepENyi9crrT1Yg4iOZ3Gkj uV6aMgzG58OxDptsp28A4JUxBOO2/N0xkIBhwwxaose0DEKAsxXW7D7tgRLQqejp4Nqj dm6EXV/cl3Hnti5KvOII5eiojNimKjIlolANx86/xlLzB60vQmGpKDSZmrX1BLF63aur 0/klGb2I9CBGDCLqsLmw8aWip6cFclvZsPOh4d/1qQjiF171890RpXBZI3d8K99OW58m lb4g== 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=tXZPZhx5KesOp8VxK/hqqde7S73nZ/IjsBKyCbDgsAM=; b=KvBLLbm04nv49FkjelkOJAUo1GdDPLdC3wWUYjn3YQLJq8WezKxN+5aa6+tyTWK1wQ wZWj7pbCF8nV8EO+LmBchTt++t9YGLBbdy/Q5fEkQtfphamoAPr3KJzLoJZknKmi1NsO QHRkj+9qbfboV3y+/6e4rgA5if2rHjX6VK1BVgyT6OtB0z38HBtlrOISkWJj0RKexSyM /NDaD3RIMNyyPbxYudF2s9lq7jp2k3uWLapV638f/Hc6b0/cR68ouvusxpxZ6OqFdp+e 5LXeQ1ySAqAbGHTTYP0K1gPnxoYrHoijPcwuSiJQJOSWlikv5N5qqtaeeNIOSKVxucds I65g== X-Gm-Message-State: AOAM5319KlxuJ1J1vJ6xfjk8VBNpRVT/OFLQ/np7j+3+5lEg/lKWDbvE r02WXQl3mUQl43RMeZ0MmAPDC23jGqla1TQ8roQ= X-Google-Smtp-Source: ABdhPJx8jku+ptNHeoCDOUuX/Dg5ulOAiBbjb/VNsZ58HSJXi4a8UlTHQYmcjlVX114SRzW2afIcFp1aB2/wuviXHLY= X-Received: by 2002:a19:8b83:: with SMTP id n125mr8722391lfd.75.1607867449516; Sun, 13 Dec 2020 05:50:49 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x134.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:126304 Archived-At: On Sun, Dec 13, 2020 at 6:09 PM Yuri Khan wrote: > > On Sun, 13 Dec 2020 at 16:00, Hongyi Zhao wrote: > > > As far as the initialization file is concerned, which is more > > preferable,~/.emacs or ~/.emacs.d/init.el? > > If you are choosing between these two, ~/.emacs.d/init.el is > preferable. Because then you can put the whole .emacs.d into version > control separately from your home directory. > > However keep in mind that Emacs 27 adds support for XDG-style > configuration directory, ~/.config/emacs/, which gives you the same > abilities as ~/.emacs.d with an added benefit of less clutter in your > home directory. I've tried the following based on your above notes, but it seems that emacs doesn't pick up the initialization file located under ~/.config/emacs/ automatically. $ mv .emacs.d/init.el ~/.config/emacs/ Any hints for this problem? Regards, -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic Vocational and Technical University NO. 552 North Gangtie Road, Xingtai, China