diff options
| author | Eli Zaretskii | 2025-04-30 07:14:23 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-30 07:14:23 -0400 |
| commit | 6bb3c6f9e181bb0279457c4f74b86fae03a4c68c (patch) | |
| tree | 1bd7a65b166a8675ef3ca274c8e124977ec01906 /doc/misc | |
| parent | 606e7b73bacb282d3de0d626c9c62281cde4ea57 (diff) | |
| parent | cc5b1a01a2c20e48fc4469cf0efd2bea7731ce58 (diff) | |
| download | emacs-6bb3c6f9e181bb0279457c4f74b86fae03a4c68c.tar.gz emacs-6bb3c6f9e181bb0279457c4f74b86fae03a4c68c.zip | |
Merge from origin/emacs-30
cc5b1a01a2c ; * doc/misc/efaq-w32.texi (Location of init file): Fix a...
6c2aaedfceb Fix compilation errors in emacsclient.c with MinGW GCC 15
d56e5ba97ee ; * etc/DEBUG: Add link to GCC bug #78685.
80cbd1e31cc ; Fix key notation in Introduction to Emacs Lisp
1224e5fd961 ; * lisp/files.el (revert-buffer-restore-functions): Doc ...
79e7eeb3296 ; Improve documentation of 'format-time-string'
2838b64fc8b ; * lisp/textmodes/text-mode.el (text-mode-variant): Fix ...
9adb05422ea ; Improve obsolescence of 'text-mode-variant'
4858d818488 ; * lisp/files.el (revert-buffer-restore-functions): Doc ...
2a8e223b8d7 ; Mention early-init file in Emacs FAQ for Windows
14c707b42d9 ; Isearch: Fix key bindings in docstrings
Diffstat (limited to 'doc/misc')
| -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..e50716ff654 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 | @cindex 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: |