diff options
| author | Richard M. Stallman | 1994-10-07 09:59:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-07 09:59:00 +0000 |
| commit | a95caeed5263f1bfe93d7ca7268d48612058e2c1 (patch) | |
| tree | 5d2287a9c7aa60f5135e71c90034f0ef2fd2246d | |
| parent | 1a6bc985cf0be7530a17cc9c2d684823f8958291 (diff) | |
| download | emacs-a95caeed5263f1bfe93d7ca7268d48612058e2c1.tar.gz emacs-a95caeed5263f1bfe93d7ca7268d48612058e2c1.zip | |
(rmail-font-lock-keywords): New variable.
(rmail-variables): Set font-lock-keywords locally.
| -rw-r--r-- | lisp/mail/rmail.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index cc805e3ae37..0d5cd1c7608 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -141,6 +141,15 @@ Called with region narrowed to the message, including headers.") | |||
| 141 | 141 | ||
| 142 | (defvar rmail-overlay-list nil) | 142 | (defvar rmail-overlay-list nil) |
| 143 | 143 | ||
| 144 | (defvar rmail-font-lock-keywords | ||
| 145 | '(("^\\(From\\|Sender\\):" . font-lock-function-name-face) | ||
| 146 | ("^Reply-To:.*$" . font-lock-function-name-face) | ||
| 147 | ("^Subject:" . font-lock-comment-face) | ||
| 148 | ("^\\(To\\|Apparently-To\\|Cc\\):" . font-lock-keyword-face) | ||
| 149 | ("^[ \t]*\\sw*[>|}].*$" . font-lock-reference-face) ; Citation. | ||
| 150 | ("^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\|Date\\):.*$" . font-lock-string-face)) | ||
| 151 | "Additional expressions to highlight in Rmail mode.") | ||
| 152 | |||
| 144 | ;; These are used by autoloaded rmail-summary. | 153 | ;; These are used by autoloaded rmail-summary. |
| 145 | 154 | ||
| 146 | (defvar rmail-summary-buffer nil) | 155 | (defvar rmail-summary-buffer nil) |
| @@ -605,6 +614,8 @@ Instead, these commands are available: | |||
| 605 | (defun rmail-variables () | 614 | (defun rmail-variables () |
| 606 | (make-local-variable 'revert-buffer-function) | 615 | (make-local-variable 'revert-buffer-function) |
| 607 | (setq revert-buffer-function 'rmail-revert) | 616 | (setq revert-buffer-function 'rmail-revert) |
| 617 | (make-local-variable 'font-lock-keywords) | ||
| 618 | (setq font-lock-keywords rmail-font-lock-keywords) | ||
| 608 | (make-local-variable 'rmail-last-label) | 619 | (make-local-variable 'rmail-last-label) |
| 609 | (make-local-variable 'rmail-last-regexp) | 620 | (make-local-variable 'rmail-last-regexp) |
| 610 | (make-local-variable 'rmail-deleted-vector) | 621 | (make-local-variable 'rmail-deleted-vector) |