diff options
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/files.texi | 7 | ||||
| -rw-r--r-- | doc/lispref/os.texi | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index d53fed4ee87..c3b6c39b283 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -2822,9 +2822,10 @@ filter out a directory named @file{foo.elc}. | |||
| 2822 | name for a particular use---typically, to hold configuration data | 2822 | name for a particular use---typically, to hold configuration data |
| 2823 | specified by the current user. Usually, such files should be located | 2823 | specified by the current user. Usually, such files should be located |
| 2824 | in the directory specified by @code{user-emacs-directory}, which is | 2824 | in the directory specified by @code{user-emacs-directory}, which is |
| 2825 | @file{~/.config/emacs} or @file{~/.emacs.d} by default (@pxref{Init | 2825 | typically @file{~/.config/emacs} by default (@pxref{Find |
| 2826 | File}). For example, abbrev definitions are stored by default in | 2826 | Init,,How Emacs Finds Your Init File, emacs, The GNU Emacs Manual}). |
| 2827 | @file{~/.config/emacs/abbrev_defs} or @file{~/.emacs.d/abbrev_defs}. | 2827 | For example, abbrev definitions are stored by default in |
| 2828 | @file{~/.config/emacs/abbrev_defs}. | ||
| 2828 | The easiest way to specify such a file name is to use the function | 2829 | The easiest way to specify such a file name is to use the function |
| 2829 | @code{locate-user-emacs-file}. | 2830 | @code{locate-user-emacs-file}. |
| 2830 | 2831 | ||
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index df212569087..c94e96bde82 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -474,10 +474,13 @@ the value refers to the corresponding source file. | |||
| 474 | 474 | ||
| 475 | @defvar user-emacs-directory | 475 | @defvar user-emacs-directory |
| 476 | This variable holds the name of the Emacs default directory. | 476 | This variable holds the name of the Emacs default directory. |
| 477 | It is @file{@var{xdghome}/emacs/} if that directory exists, otherwise | 477 | It defaults to @file{$@{XDG_CONFIG_HOME-'~/.config'@}/emacs/} |
| 478 | @file{~/.emacs.d/} on all platforms but MS-DOS. Here, @var{xdghome} | 478 | if that directory exists and @file{~/.emacs.d/} does not exist, |
| 479 | otherwise to @file{~/.emacs.d/} on all platforms but MS-DOS@. | ||
| 480 | Here, @file{$@{XDG_CONFIG_HOME-'~/.config'@}} | ||
| 479 | stands for the value of the environment variable @env{XDG_CONFIG_HOME} | 481 | stands for the value of the environment variable @env{XDG_CONFIG_HOME} |
| 480 | if that variable is set, and for @file{~/.config} otherwise. | 482 | if that variable is set, and for @file{~/.config} otherwise. |
| 483 | @xref{Find Init,,How Emacs Finds Your Init File, emacs, The GNU Emacs Manual}. | ||
| 481 | @end defvar | 484 | @end defvar |
| 482 | 485 | ||
| 483 | @node Terminal-Specific | 486 | @node Terminal-Specific |