diff options
| author | Eli Zaretskii | 2025-04-29 09:05:28 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-29 09:05:28 +0300 |
| commit | 2a8e223b8d7c8e18a10ced98f5b794c4de9737e6 (patch) | |
| tree | 0010998459048c67034abae47394e5904d5d7186 | |
| parent | 14c707b42d9db7dd2220118ecb49df8e2a5e7b78 (diff) | |
| download | emacs-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.texi | 18 |
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 | ||
| 357 | When Emacs starts up, it attempts to load and execute the contents of | 358 | When Emacs starts up, it attempts to load and execute the contents of |
| 358 | a file commonly called @file{.emacs} (though it may have other names, | 359 | a 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 | |||
| 362 | accessible from the @emph{Options} menu. If the file does not exist, | 363 | accessible from the @emph{Options} menu. If the file does not exist, |
| 363 | Emacs will start with the default settings. | 364 | Emacs will start with the default settings. |
| 364 | 365 | ||
| 366 | In addition, Emacs 27 and later attempts to load and execute the | ||
| 367 | contents of the @file{early-init.el} file. As its name suggests, this | ||
| 368 | file, if it exists, is loaded and executed early on during the Emacs | ||
| 369 | startup sequence, before @code{.emacs}, and is intended to contain the | ||
| 370 | few initializations which must be performed before @file{.emacs} is | ||
| 371 | looked 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 | ||
| 373 | On Windows, the @file{.emacs} file may be called @file{_emacs} for | 382 | On Windows, the @file{.emacs} init file may be called @file{_emacs} for |
| 374 | backward compatibility with DOS and FAT filesystems where filenames | 383 | backward compatibility with DOS and FAT filesystems where filenames |
| 375 | could not start with a dot. Some users prefer to continue using such | 384 | could not start with a dot. Some users prefer to continue using such |
| 376 | a name due to historical problems various Windows tools had in the | 385 | a name due to historical problems various Windows tools had in the |
| 377 | past with file names that begin with a dot. The init file may also be | 386 | past with file names that begin with a dot. The init file may also be |
| 378 | called @file{.emacs.d/init.el}. Many of the other files that are | 387 | called @file{.emacs.d/init.el}. The @file{early-init.el} file and many |
| 379 | created by Lisp packages are stored in the @file{.emacs.d} directory | 388 | of the other files that are created by Lisp packages are stored in the |
| 380 | too, which keeps all your Emacs related files in one place. | 389 | @file{.emacs.d} directory too, which keeps all your Emacs related files |
| 390 | in one place. | ||
| 381 | 391 | ||
| 382 | All the files mentioned above should go in your @env{HOME} directory. | 392 | All the files mentioned above should go in your @env{HOME} directory. |
| 383 | The @env{HOME} directory is determined by following the steps below: | 393 | The @env{HOME} directory is determined by following the steps below: |