aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-04-29 09:05:28 +0300
committerEli Zaretskii2025-04-29 09:05:28 +0300
commit2a8e223b8d7c8e18a10ced98f5b794c4de9737e6 (patch)
tree0010998459048c67034abae47394e5904d5d7186
parent14c707b42d9db7dd2220118ecb49df8e2a5e7b78 (diff)
downloademacs-2a8e223b8d7c8e18a10ced98f5b794c4de9737e6.tar.gz
emacs-2a8e223b8d7c8e18a10ced98f5b794c4de9737e6.zip
; Mention early-init file in Emacs FAQ for Windows
* doc/misc/efaq-w32.texi (Location of init file, Init file): Mention the early-init file. Suggested by David Hedlund <davidh@gnu.org>.
-rw-r--r--doc/misc/efaq-w32.texi18
1 files changed, 14 insertions, 4 deletions
diff --git a/doc/misc/efaq-w32.texi b/doc/misc/efaq-w32.texi
index 766acb0f3ca..0a0ac539de5 100644
--- a/doc/misc/efaq-w32.texi
+++ b/doc/misc/efaq-w32.texi
@@ -353,6 +353,7 @@ not bundled with Emacs. @xref{Other useful ports}.
353@section What is my init file? 353@section What is my init file?
354@cindex .emacs 354@cindex .emacs
355@cindex init file 355@cindex init file
356@cindex early init file
356 357
357When Emacs starts up, it attempts to load and execute the contents of 358When Emacs starts up, it attempts to load and execute the contents of
358a file commonly called @file{.emacs} (though it may have other names, 359a file commonly called @file{.emacs} (though it may have other names,
@@ -362,22 +363,31 @@ code to your .emacs, or you can use the Customization interface
362accessible from the @emph{Options} menu. If the file does not exist, 363accessible from the @emph{Options} menu. If the file does not exist,
363Emacs will start with the default settings. 364Emacs will start with the default settings.
364 365
366In addition, Emacs 27 and later attempts to load and execute the
367contents of the @file{early-init.el} file. As its name suggests, this
368file, if it exists, is loaded and executed early on during the Emacs
369startup sequence, before @code{.emacs}, and is intended to contain the
370few initializations which must be performed before @file{.emacs} is
371looked up and loaded.
372
365@node Location of init file 373@node Location of init file
366@section Where do I put my init file? 374@section Where do I put my init file?
367@cindex HOME directory 375@cindex HOME directory
368@cindex .emacs.d 376@cindex .emacs.d
369@cindex _emacs 377@cindex _emacs
370@cindex init.el 378@cindex init.el
379@cinde early-init.el
371@cindex registry, setting the HOME directory in 380@cindex registry, setting the HOME directory in
372 381
373On Windows, the @file{.emacs} file may be called @file{_emacs} for 382On Windows, the @file{.emacs} init file may be called @file{_emacs} for
374backward compatibility with DOS and FAT filesystems where filenames 383backward compatibility with DOS and FAT filesystems where filenames
375could not start with a dot. Some users prefer to continue using such 384could not start with a dot. Some users prefer to continue using such
376a name due to historical problems various Windows tools had in the 385a name due to historical problems various Windows tools had in the
377past with file names that begin with a dot. The init file may also be 386past with file names that begin with a dot. The init file may also be
378called @file{.emacs.d/init.el}. Many of the other files that are 387called @file{.emacs.d/init.el}. The @file{early-init.el} file and many
379created by Lisp packages are stored in the @file{.emacs.d} directory 388of the other files that are created by Lisp packages are stored in the
380too, which keeps all your Emacs related files in one place. 389@file{.emacs.d} directory too, which keeps all your Emacs related files
390in one place.
381 391
382All the files mentioned above should go in your @env{HOME} directory. 392All the files mentioned above should go in your @env{HOME} directory.
383The @env{HOME} directory is determined by following the steps below: 393The @env{HOME} directory is determined by following the steps below: