From: Tim Visher <tim.visher@gmail.com>
To: Hongyi Zhao <hongyi.zhao@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: ~/.emacs vs ~/.emacs.d/init.el.
Date: Sun, 13 Dec 2020 09:44:08 -0500 [thread overview]
Message-ID: <CAHa53uyArj9cpaXGV7hQDt0=PuwiTg4pgTuQhGmMEn1s5ZOANg@mail.gmail.com> (raw)
In-Reply-To: <CAGP6PO+w97Gc2VvkoE4GFO=B-vLx8L5sm2r=gGbrwya+EhLAYQ@mail.gmail.com>
On Sun, Dec 13, 2020 at 9:39 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> On Sun, Dec 13, 2020 at 9:59 PM <2QdxY4RzWzUUiLuE@potatochowder.com>
> wrote:
> >
> > On 2020-12-13 at 21:50:37 +0800,
> > Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> >
> > > On Sun, Dec 13, 2020 at 6:09 PM Yuri Khan <yuri.v.khan@gmail.com>
> wrote:
> > > >
> > > > On Sun, 13 Dec 2020 at 16:00, Hongyi Zhao <hongyi.zhao@gmail.com>
> 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?
> >
> > Try removing or renaming ~/.emacs.d, the existence of which might be
> > fooling emacs into *not* searching for ~/.config/emacs. For reference,
> > see:
> >
> >
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html
> >
>
> Currently, the ~/.emacs.d directory is used by emacs to store many of
> the user data as shown below:
>
> $ ls ~/.emacs.d/
> auto-save-list cnfonts eaf elpa init.el network-security.data rime
> url
>
> So, if I removed/deleted this folder, then where should I put the
> emacs' user data?
>
The operation you really wanted to do in the beginning was probably `mv
~/.emacs.d ~/.config/emacs`. As the manual states the idea is that
~/.config/emacs completely replaces ~/.emacs.d.
next prev parent reply other threads:[~2020-12-13 14:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-13 9:00 ~/.emacs vs ~/.emacs.d/init.el Hongyi Zhao
2020-12-13 9:06 ` Christopher Dimech
2020-12-13 10:09 ` Yuri Khan
2020-12-13 13:50 ` Hongyi Zhao
2020-12-13 13:56 ` Tim Visher
2020-12-13 13:58 ` 2QdxY4RzWzUUiLuE
2020-12-13 14:38 ` Hongyi Zhao
2020-12-13 14:44 ` Tim Visher [this message]
2020-12-13 14:52 ` 2QdxY4RzWzUUiLuE
2020-12-13 15:04 ` Tim Visher
2020-12-13 15:12 ` Hongyi Zhao
2020-12-13 18:58 ` 2QdxY4RzWzUUiLuE
2020-12-13 19:12 ` Eli Zaretskii
2020-12-13 14:06 ` Perry Smith
2020-12-13 14:31 ` Hongyi Zhao
2020-12-13 19:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
-- strict thread matches above, loose matches on Subject: below --
2007-06-13 10:00 Juanma Barranquero
2007-06-13 17:28 ` Eli Zaretskii
2007-06-13 17:34 ` Juanma Barranquero
2007-06-13 17:53 ` Eli Zaretskii
2007-06-13 17:57 ` Juanma Barranquero
2007-06-21 18:54 ` Davis Herring
2007-06-21 19:18 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHa53uyArj9cpaXGV7hQDt0=PuwiTg4pgTuQhGmMEn1s5ZOANg@mail.gmail.com' \
--to=tim.visher@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=hongyi.zhao@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.