aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/files.texi7
-rw-r--r--doc/lispref/os.texi7
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}.
2822name for a particular use---typically, to hold configuration data 2822name for a particular use---typically, to hold configuration data
2823specified by the current user. Usually, such files should be located 2823specified by the current user. Usually, such files should be located
2824in the directory specified by @code{user-emacs-directory}, which is 2824in the directory specified by @code{user-emacs-directory}, which is
2825@file{~/.config/emacs} or @file{~/.emacs.d} by default (@pxref{Init 2825typically @file{~/.config/emacs} by default (@pxref{Find
2826File}). For example, abbrev definitions are stored by default in 2826Init,,How Emacs Finds Your Init File, emacs, The GNU Emacs Manual}).
2827@file{~/.config/emacs/abbrev_defs} or @file{~/.emacs.d/abbrev_defs}. 2827For example, abbrev definitions are stored by default in
2828@file{~/.config/emacs/abbrev_defs}.
2828The easiest way to specify such a file name is to use the function 2829The 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
476This variable holds the name of the Emacs default directory. 476This variable holds the name of the Emacs default directory.
477It is @file{@var{xdghome}/emacs/} if that directory exists, otherwise 477It defaults to @file{$@{XDG_CONFIG_HOME-'~/.config'@}/emacs/}
478@file{~/.emacs.d/} on all platforms but MS-DOS. Here, @var{xdghome} 478if that directory exists and @file{~/.emacs.d/} does not exist,
479otherwise to @file{~/.emacs.d/} on all platforms but MS-DOS@.
480Here, @file{$@{XDG_CONFIG_HOME-'~/.config'@}}
479stands for the value of the environment variable @env{XDG_CONFIG_HOME} 481stands for the value of the environment variable @env{XDG_CONFIG_HOME}
480if that variable is set, and for @file{~/.config} otherwise. 482if 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