|
From: | Juri Linkov |
Subject: | bug#50674: Major mode for etc/AUTHORS with basic font-locking |
Date: | Sun, 19 Sep 2021 19:33:45 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> +;;;###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?
[Prev in Thread] | Current Thread | [Next in Thread] |