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 22:31:37 +0800 Message-ID: References: <3E90CEBD-9784-4D1E-9137-0A731FAB9221@easesoftware.com> 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="16341"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Yuri Khan To: Perry Smith Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 15:32:33 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 1koSQK-00049x-Ms for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 15:32:32 +0100 Original-Received: from localhost ([::1]:52642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koSQJ-0000IB-Mu for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 09:32:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koSPh-0000Hy-J9 for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 09:31:53 -0500 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:39626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koSPf-0002c3-2P for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 09:31:53 -0500 Original-Received: by mail-lf1-x12b.google.com with SMTP id a12so23617219lfl.6 for ; Sun, 13 Dec 2020 06:31: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=RxRKAiFYycxMaCQx19A4TCkXKSn62AwvDfvb4qS9LbQ=; b=fOM8jX+s9SQOjbcFQbdKI+jATYZVKyh7iDwREIFIG9it4RLIqNevkHnRJLdDWIH6BG Xn/13JqqqIyIO4/svL8g1Qd0sGjFxdKZzVeggf3pax1Efc3vhEjKDUijl2X3TsFo+DbS mIs9SriSOVMQ8/sJpFmHlJew1HfoKJUC5R01dpnWpCEVe2tennF/yBKegy9b49zYTVPs mCfehsqvnj9rMNWCOJczzkhUgAiQWBDHdaoNT1r6cQR7GloGn7GSxBSf8875ED6pJhs/ Hg/uX3gRrqase4KYc85VT+OMpkaYzQNAV8LAf9qUxbZxAB/nXcf1yQ4XD2YWExJb2Y14 wofA== 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=RxRKAiFYycxMaCQx19A4TCkXKSn62AwvDfvb4qS9LbQ=; b=qZMR8Y06GxX3rGFoWqElCbkTuiEIdbcH3Zxzd19Km1No+ZXWDu64AC+l9D0DeIoCHw CHoR5Jw5QQ/YGPC4Qn0vMvzkzTk9muDrOy5TY2gNN6vB1nu/bSef4yj7TTlnPcD77hWm xBc2dNVywaOz/WDKWLSGOSfAq96oBRuncUmHyYTVVSnJdIAf/WaP/Ty7YAlzns9Axogp 8Hlx6LbZ3ULpyXUUNKVFbJcp++Nt7YwjOFurgbmUT4Cs8WgKW4Q/XjxBCQxBDgzJCHUw 4KMotSusymjbdxuw3ONcCzT3Htk3jkfvO9+81Qv/lIS0eU/ckXqg02hO0aWbgEnVrIwE TLsg== X-Gm-Message-State: AOAM533bTH8M0AiRsB23v3edJoaEdR7yWUPhjkxPClX5k4uqrBdvC4t5 QmfCaMCPq6XYvjXDMXKUb0xc4kKqTsZbtr5u/HE= X-Google-Smtp-Source: ABdhPJy0VJU+Zz6qOEmWgiSl4WtRdFaKJLbZQAfIdNom05ko6hF0XVButo7+Oe4gf2B+T0fVpaAsYbOHe67Sh9xvCtE= X-Received: by 2002:a2e:96cc:: with SMTP id d12mr4795282ljj.246.1607869909115; Sun, 13 Dec 2020 06:31:49 -0800 (PST) In-Reply-To: <3E90CEBD-9784-4D1E-9137-0A731FAB9221@easesoftware.com> Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12b.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:126308 Archived-At: On Sun, Dec 13, 2020 at 10:06 PM Perry Smith wrote: > > Are you using emacs 27? I compiled the latest emacs git master version: $ emacs --version GNU Emacs 28.0.50 > > > On Dec 13, 2020, at 7:50 AM, Hongyi Zhao wrote: > > > > 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 > > > -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic Vocational and Technical University NO. 552 North Gangtie Road, Xingtai, China