diff options
| author | Glenn Morris | 2020-01-16 07:50:22 -0800 |
|---|---|---|
| committer | Glenn Morris | 2020-01-16 07:50:22 -0800 |
| commit | 215d9fcb79b6ec3c241f58fdff02bf15fb952d0c (patch) | |
| tree | 00b960d85395a10dd1831fef0fe73cb515dbbf11 /doc | |
| parent | 0f4fa004ebbcf8796abab26988e79b01ba4f2ab5 (diff) | |
| parent | 52080b5778cbe535c331fa14539aecd88f2be0a0 (diff) | |
| download | emacs-215d9fcb79b6ec3c241f58fdff02bf15fb952d0c.tar.gz emacs-215d9fcb79b6ec3c241f58fdff02bf15fb952d0c.zip | |
Merge from origin/emacs-27
52080b5778 (origin/emacs-27) * lisp/minibuffer.el (read-file-name-def...
e4cec1fd10 ; * etc/NEWS: Fix some file name quotations.
13995f31a2 Make emacs prefer an existing ~/.emacs.d to an existing XD...
91cac24952 ; etc/NEWS minor edits
5505babc07 Describe --with-cairo non-support for bitmapped fonts.
caf00066ee Mention GTK font chooser changes in NEWS
23b87db628 ; Unmaintain fortran elisp
3b0d1a50aa f90: handle F2008 module function
55803cc189 Move shell-related menu items to "Shell Commands" submenu ...
2be48605c0 * admin/notes/font-backend: Remove outdated file. (Bug#34663)
f07a470124 Declare the ftx font backend driver obsolete
6c08a430fb ; Fix wording of a comment.
# Conflicts:
# admin/notes/font-backend
# etc/NEWS
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/custom.texi | 45 |
1 files changed, 28 insertions, 17 deletions
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 1958a86b92d..2e04a6b22d3 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -2655,26 +2655,37 @@ library. @xref{Hooks}. | |||
| 2655 | 2655 | ||
| 2656 | Emacs normally finds your init file in a location under your home | 2656 | Emacs normally finds your init file in a location under your home |
| 2657 | directory. @xref{Init File}. By default this location is | 2657 | directory. @xref{Init File}. By default this location is |
| 2658 | @file{~/.config/emacs/init.el} where @file{~/} stands for your home directory. | 2658 | @file{~/.emacs.d/init.el} where @file{~/} stands for your home directory. |
| 2659 | This default can be overridden as described below. | 2659 | This default can be overridden as described below. |
| 2660 | 2660 | ||
| 2661 | If @env{XDG_CONFIG_HOME} is set in your environment, its | 2661 | Emacs looks for your init file |
| 2662 | value replaces @file{~/.config} in the name of the default | ||
| 2663 | init file. | ||
| 2664 | |||
| 2665 | If the default init file's parent directory does not exist but the | ||
| 2666 | directory @file{~/.emacs.d} does exist, Emacs looks for your init file | ||
| 2667 | using the filenames @file{~/.emacs.el}, @file{~/.emacs}, or | 2662 | using the filenames @file{~/.emacs.el}, @file{~/.emacs}, or |
| 2668 | @file{~/.emacs.d/init.el}; you can choose to use any one of these | 2663 | @file{~/.emacs.d/init.el}; you can choose to use any one of these |
| 2669 | names. (Note that only the locations directly in your home directory | 2664 | names. (Note that only the locations directly in your home directory |
| 2670 | have a leading dot in the location's basename.) Although this is | 2665 | have a leading dot in the location's basename.) |
| 2671 | backward-compatible with older Emacs versions, modern POSIX platforms | 2666 | |
| 2672 | prefer putting your initialization files under @file{~/.config} so | 2667 | Emacs can also look in an XDG-compatible location for @file{init.el}, |
| 2673 | that troubleshooting a problem that might be due to a bad init file, | 2668 | the default is the directory @file{~/.config/emacs}. This can be |
| 2674 | or archiving a collection of init files, can be done by renaming that | 2669 | overriden by setting @env{XDG_CONFIG_HOME} in your environment, its |
| 2675 | directory. To help older Emacs versions find configuration files in | 2670 | value replaces @file{~/.config} in the name of the default XDG init |
| 2676 | their current default locations, you can execute the following | 2671 | file. However @file{~/.emacs.d} and @file{~/.emacs} are always |
| 2677 | Emacs Lisp code: | 2672 | preferred if they exist, which means that you must delete or rename |
| 2673 | them in order to use the XDG location. | ||
| 2674 | |||
| 2675 | Note also that if neither the XDG location nor @file{~/.emacs.d} | ||
| 2676 | exist, then Emacs will create @file{~/.emacs.d} (and therefore use it | ||
| 2677 | during subsequent invocations). | ||
| 2678 | |||
| 2679 | Emacs will set @var{user-emacs-directory} to the directory it decides | ||
| 2680 | to use. | ||
| 2681 | |||
| 2682 | Although this is backward-compatible with older Emacs versions, modern | ||
| 2683 | POSIX platforms prefer putting your initialization files under | ||
| 2684 | @file{~/.config} so that troubleshooting a problem that might be due | ||
| 2685 | to a bad init file, or archiving a collection of init files, can be | ||
| 2686 | done by renaming that directory. To help older Emacs versions find | ||
| 2687 | configuration files in their current default locations, you can | ||
| 2688 | execute the following Emacs Lisp code: | ||
| 2678 | 2689 | ||
| 2679 | @example | 2690 | @example |
| 2680 | (make-symbolic-link ".config/emacs" "~/.emacs.d") | 2691 | (make-symbolic-link ".config/emacs" "~/.emacs.d") |
| @@ -2694,7 +2705,7 @@ otherwise, it looks up the home directory corresponding to that user | |||
| 2694 | name in the system's data base of users. | 2705 | name in the system's data base of users. |
| 2695 | 2706 | ||
| 2696 | For brevity the rest of the Emacs documentation generally uses just | 2707 | For brevity the rest of the Emacs documentation generally uses just |
| 2697 | the current default location @file{~/.config/emacs/init.el} for the | 2708 | the current default location @file{~/.emacs.d/init.el} for the |
| 2698 | init file. | 2709 | init file. |
| 2699 | @c LocalWords: backtab | 2710 | @c LocalWords: backtab |
| 2700 | 2711 | ||
| @@ -2740,7 +2751,7 @@ Type @kbd{C-q}, followed by the key you want to bind, to insert @var{char}. | |||
| 2740 | @xref{Init File}. However, it is sometimes desirable | 2751 | @xref{Init File}. However, it is sometimes desirable |
| 2741 | to have customizations that take effect during Emacs startup earlier than the | 2752 | to have customizations that take effect during Emacs startup earlier than the |
| 2742 | normal init file is processed. Such customizations can be put in the early | 2753 | normal init file is processed. Such customizations can be put in the early |
| 2743 | init file, @file{~/.config/emacs.d/early-init.el} or @file{~/.emacs.d/early-init.el}. This file is loaded before the | 2754 | init file, @file{~/.config/emacs/early-init.el} or @file{~/.emacs.d/early-init.el}. This file is loaded before the |
| 2744 | package system and GUI is initialized, so in it you can customize variables | 2755 | package system and GUI is initialized, so in it you can customize variables |
| 2745 | that affect frame appearance as well as the package initialization process, | 2756 | that affect frame appearance as well as the package initialization process, |
| 2746 | such as @code{package-enable-at-startup}, @code{package-load-list}, and | 2757 | such as @code{package-enable-at-startup}, @code{package-load-list}, and |