GNU bug report logs - #50674
Major mode for etc/AUTHORS with basic font-locking

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Sun, 19 Sep 2021 14:13:02 UTC

Severity: wishlist

Tags: fixed

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50674 <at> debbugs.gnu.org
Subject: bug#50674: Major mode for etc/AUTHORS with basic font-locking
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?




This bug report was last modified 3 years and 336 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.