help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ~/.emacs vs ~/.emacs.d/init.el.


From: Emanuel Berg
Subject: Re: ~/.emacs vs ~/.emacs.d/init.el.
Date: Sun, 13 Dec 2020 20:12:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]