all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: ~/.emacs vs ~/.emacs.d/init.el.
Date: Sun, 13 Dec 2020 20:12:40 +0100	[thread overview]
Message-ID: <87blexzfiv.fsf@zoho.eu> (raw)
In-Reply-To: CAGP6PO+giFkvkTNn3KVFPL-MRxafqAdWSfUaQwmdah0XWC+A1g@mail.gmail.com

Hongyi Zhao wrote:

> As far as the initialization file is concerned, which is more
> preferable,~/.emacs or ~/.emacs.d/init.el?

Hm... preferable in what sense?

.emacs will be evaluated when Emacs initializes upon normal
invocation but as far as the configuration goes, it doesn't
matter where you put it or in what way you evaluate it.

If you want to have it somewhere else, for practical or modular
reasons (e.g., one file for each thing you configure/extend),
in .emacs you can just `push' the path(s) where it/they are to
`load-path' and then use `load-file' to get it in effect.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




  parent reply	other threads:[~2020-12-13 19:12 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
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 [this message]
  -- 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=87blexzfiv.fsf@zoho.eu \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /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.