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

From: Juri Linkov <[email-masked]>
Date: Sun, 19 Sep 2021 19:33:45 +0300

> +;;;###autoload
> +(define-derived-mode etc-authors-mode special-mode "Authors View"
> +  "Major mode for viewing \"etc/AUTHORS\" from the Emacs distribution.
> +Provides some basic font locking and not much else."
> +  (setq-local font-lock-defaults
> +              '(etc-authors-mode-font-lock-keywords nil nil ((?_ . "w"))))
> +  (setq font-lock-multiline nil)
> +  (etc-authors-mode--hide-local-variables))

Isn't generic-x.el a more suitable place for such small modes?