summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-01-12 14:36:56 +0200
committerEli Zaretskii <eliz@gnu.org>2022-01-12 14:36:56 +0200
commit862faa64e5c41f232a636dc3b28089040cf8bc0a (patch)
tree20a87fd82f368e0a8bfad728264669c30483f1dd
parentad82bbdf08bb2d65c048299ce3740dd151ac733c (diff)
downloademacs-862faa64e5c41f232a636dc3b28089040cf8bc0a.tar.gz
; * doc/lispref/modes.texi (Auto Major Mode): Clarification. (Bug#53199)
-rw-r--r--doc/lispref/modes.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 1fafacb0573..bc078d60e15 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -750,6 +750,9 @@ uncompression packages: an entry of the form @code{("\\.gz\\'"
@var{function} t)} can uncompress the file and then put the uncompressed
file in the proper mode according to the name sans @samp{.gz}.
+If @code{auto-mode-alist} has more than one element whose @var{regexp}
+matches the file name, Emacs will use the first match.
+
Here is an example of how to prepend several pattern pairs to
@code{auto-mode-alist}. (You might use this sort of expression in your
init file.)