diff options
| author | Eli Zaretskii | 2024-07-26 09:14:43 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-07-26 09:14:43 +0300 |
| commit | 268a2d10fc9c6578db23d54f7d790ec591cf211c (patch) | |
| tree | 24a4e2705a49dd2c433d95e6810abed2c268bb0a /doc | |
| parent | c27055a938aadec81e4603d00e7d0997c4d2579f (diff) | |
| download | emacs-268a2d10fc9c6578db23d54f7d790ec591cf211c.tar.gz emacs-268a2d10fc9c6578db23d54f7d790ec591cf211c.zip | |
Improve documentation of '--init-directory' command-line option.
* doc/emacs/custom.texi (Find Init):
* doc/emacs/cmdargs.texi (Initial Options): More accurate and
detailed description of what '--init-directory' does and how it
affects the Emacs session. Add index entries and cross-references
as needed. (Bug#72294)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/cmdargs.texi | 10 | ||||
| -rw-r--r-- | doc/emacs/custom.texi | 8 |
2 files changed, 17 insertions, 1 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index 49810ee7693..cd7d2be6d2f 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -351,6 +351,16 @@ Do not include the @file{site-lisp} directories in @code{load-path} | |||
| 351 | @item --init-directory | 351 | @item --init-directory |
| 352 | @opindex --init-directory | 352 | @opindex --init-directory |
| 353 | Specify the directory to use when looking for the Emacs init files. | 353 | Specify the directory to use when looking for the Emacs init files. |
| 354 | Note that this merely overrides the value of | ||
| 355 | @file{user-emacs-directory}, the directory which Emacs usually | ||
| 356 | determines as side effect of searching for your init file (@pxref{Find | ||
| 357 | Init}), but does not change the search for the init file. In | ||
| 358 | particular, if there's no init file in the directory named by this | ||
| 359 | option, Emacs will find and use the init file it would have used without | ||
| 360 | this option (but will search for your other per-user Emacs files in the | ||
| 361 | directory specified by this option). If you want to force Emacs to use | ||
| 362 | the init file in this directory, make sure it exists there before | ||
| 363 | starting Emacs with this option. | ||
| 354 | 364 | ||
| 355 | @item --no-splash | 365 | @item --no-splash |
| 356 | @opindex --no-splash | 366 | @opindex --no-splash |
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 1527e42bbfe..4b16410eeec 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -2958,8 +2958,14 @@ Note also that if neither the XDG location nor @file{~/.emacs.d} | |||
| 2958 | exist, then Emacs will create @file{~/.emacs.d} (and therefore use it | 2958 | exist, then Emacs will create @file{~/.emacs.d} (and therefore use it |
| 2959 | during subsequent invocations). | 2959 | during subsequent invocations). |
| 2960 | 2960 | ||
| 2961 | @vindex user-emacs-directory | ||
| 2961 | Emacs will set @code{user-emacs-directory} to the directory it decides | 2962 | Emacs will set @code{user-emacs-directory} to the directory it decides |
| 2962 | to use. | 2963 | to use. This directory is subsequently used to look for your other |
| 2964 | user-specific Emacs files, such as @code{custom-file} (@pxref{Saving | ||
| 2965 | Customizations}), the saved desktop (@pxref{Saving Emacs Sessions}) and | ||
| 2966 | others. The @code{--init-directory} command-line option (@pxref{Initial | ||
| 2967 | Options}) overrides the value of @code{user-emacs-directory} determined | ||
| 2968 | as side effect of the search for your user init file described above. | ||
| 2963 | 2969 | ||
| 2964 | Although this is backward-compatible with older Emacs versions, modern | 2970 | Although this is backward-compatible with older Emacs versions, modern |
| 2965 | POSIX platforms prefer putting your initialization files under | 2971 | POSIX platforms prefer putting your initialization files under |