Subject: bug#50674: Major mode for etc/AUTHORS with basic font-locking

From: Juri Linkov <[email-masked]>
Date: Tue, 21 Sep 2021 20:28:01 +0300

> diff --git a/lisp/files.el b/lisp/files.el
> index b113ff32f2..171b69e01e 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -3006,7 +3006,8 @@ auto-mode-alist
>       ("\\.xcf\\'" . image-mode)
>       ("\\.xmp\\'" . image-mode)
>       ("\\.xwd\\'" . image-mode)
> -     ("\\.yuv\\'" . image-mode)))
> +     ("\\.yuv\\'" . image-mode)
> +     ("emacs.*/etc/AUTHORS\\'" . etc-authors-mode)))

I think cluttering auto-mode-alist is worse than cluttering lisp/textmodes
because you can add ‘mode: etc-authors’ to Local Variables of etc/AUTHORS.