diff options
| author | Richard M. Stallman | 1994-10-07 09:56:40 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-07 09:56:40 +0000 |
| commit | 1a6bc985cf0be7530a17cc9c2d684823f8958291 (patch) | |
| tree | ba31f93ca5c2136fdf10e420c6c9932d5ec6930d | |
| parent | b9998c334df527b87e4fc4695a8044d563208625 (diff) | |
| download | emacs-1a6bc985cf0be7530a17cc9c2d684823f8958291.tar.gz emacs-1a6bc985cf0be7530a17cc9c2d684823f8958291.zip | |
(rmail-summary-font-lock-keywords): New variable.
(rmail-summary-mode): Set font-lock-keywords locally.
| -rw-r--r-- | lisp/mail/rmailsum.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 6458d06f47f..5ed5cc26bc9 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -29,6 +29,14 @@ | |||
| 29 | 29 | ||
| 30 | ;;; Code: | 30 | ;;; Code: |
| 31 | 31 | ||
| 32 | (defvar rmail-summary-font-lock-keywords | ||
| 33 | '(("^....D.*$" . font-lock-string-face) ; Deleted. | ||
| 34 | ("^....-.*$" . font-lock-type-face) ; Unread. | ||
| 35 | ;; Neither of the below will be highlighted if either of the above are: | ||
| 36 | ("^....[^D-] \\(......\\)" 1 font-lock-keyword-face) ; Date. | ||
| 37 | ("{ \\([^}]+\\),}" 1 font-lock-comment-face)) ; Labels. | ||
| 38 | "Additional expressions to highlight in Rmail Summary mode.") | ||
| 39 | |||
| 32 | ;; Entry points for making a summary buffer. | 40 | ;; Entry points for making a summary buffer. |
| 33 | 41 | ||
| 34 | ;; Regenerate the contents of the summary | 42 | ;; Regenerate the contents of the summary |
| @@ -547,6 +555,8 @@ Commands for sorting the summary: | |||
| 547 | (setq rmail-summary-redo nil) | 555 | (setq rmail-summary-redo nil) |
| 548 | (make-local-variable 'revert-buffer-function) | 556 | (make-local-variable 'revert-buffer-function) |
| 549 | (make-local-variable 'post-command-hook) | 557 | (make-local-variable 'post-command-hook) |
| 558 | (make-local-variable 'font-lock-keywords) | ||
| 559 | (setq font-lock-keywords rmail-summary-font-lock-keywords) | ||
| 550 | (rmail-summary-enable) | 560 | (rmail-summary-enable) |
| 551 | (run-hooks 'rmail-summary-mode-hook)) | 561 | (run-hooks 'rmail-summary-mode-hook)) |
| 552 | 562 | ||