From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: ~/.emacs vs ~/.emacs.d/init.el. Date: Sun, 13 Dec 2020 08:06:04 -0600 Message-ID: <3E90CEBD-9784-4D1E-9137-0A731FAB9221@easesoftware.com> References: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32841"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Yuri Khan To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 15:07:41 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 1koS2H-0008Sh-MO for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 15:07:41 +0100 Original-Received: from localhost ([::1]:49450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koS2G-0005x0-Ns for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 09:07:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koS1a-0005wl-Fe for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 09:06:58 -0500 Original-Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]:61658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koS1Y-0002ig-Ao for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 09:06:58 -0500 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 56DC5400F89; Sun, 13 Dec 2020 14:06:07 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (100-96-9-178.trex.outbound.svc.cluster.local [100.96.9.178]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 790AE400EA6; Sun, 13 Dec 2020 14:06:06 +0000 (UTC) X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.11); Sun, 13 Dec 2020 14:06:07 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Plucky-Whispering: 486530563b7d5cb2_1607868367075_3595185043 X-MC-Loop-Signature: 1607868367075:2005022636 X-MC-Ingress-Time: 1607868367075 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WkwCDlH3jh6f0nvLQvY/55OCyLMgzpkO6on0pKxOV3M=; b=TEW3QiIUM/3C1jLdaaZzzETIx 27H/I8/52eZNTfurz9cUIYEoqEmNgzDFhtrdTAkfhGvxJHfXnn6t8u1EA6zEheBiHs6JB8GTXf4+w XRjZconwIfxGzWzmpb2BdIDsI7PtTsJuVZ9pvyTSGZaWnv+o7cGbC4FL2Y0Vg82bDA5TWhtI2VbWE lmc7OJKJD53B+ZJ8tc4CbrPH1OVkFRGT6WidFXG49159yAs3ToSvP5SiZt+a83BnLwXHhbmXRnwyf ooMXvabI5gIlLCEZHQiH8iBCvxjzpk7fLFzhfCQAGv8jt9AdQ+y/uLSFCMuSA4nMsMBxYFip2QQ5H fAWaZA3lQ==; Original-Received: from mobile-166-176-123-211.mycingular.net ([166.176.123.211]:43164 helo=mysticslate.localdomain) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1koS0j-0000wa-DJ; Sun, 13 Dec 2020 09:06:05 -0500 In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.4) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com Received-SPF: pass client-ip=23.83.209.51; envelope-from=pedz@easesoftware.com; helo=dragonfly.birch.relay.mailchannels.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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:126307 Archived-At: Are you using emacs 27? > 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 >