|
From: | Matthieu Moy |
Subject: | There should be a fortune-mode in fortune.el |
Date: | Thu, 01 Sep 2005 00:05:21 +0200 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Editing fortune files with Emacs is a pain: M-q reformats the whole file :-( Here's a trivial but usefull fortune-mode to edit fortune files: (defconst fortune-font-lock-keywords '(("^%$" . font-lock-keyword-face))) ;;;###autoload (define-derived-mode fortune-mode text-mode "Fortune" "Major mode for editting fortune files" (set (make-local-variable 'font-lock-defaults) '(fortune-font-lock-keywords t)) (set (make-local-variable 'paragraph-separate) (concat "\\(%$\\|" paragraph-separate "\\)"))) I think this should go in fortune.el -- Matthieu
[Prev in Thread] | Current Thread | [Next in Thread] |