Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f1052d2e
Commit
f1052d2e
authored
Oct 23, 1996
by
Simon Marshall
Browse files
Tweak mail-font-lock-keywords.
parent
34c3c889
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
lisp/mail/sendmail.el
lisp/mail/sendmail.el
+11
-5
No files found.
lisp/mail/sendmail.el
View file @
f1052d2e
...
...
@@ -212,17 +212,23 @@ actually occur.")
(
defvar
mail-font-lock-keywords
(
eval-when-compile
(
let*
((
cite-prefix
"A-Za-z"
)
(
cite-suffix
(
concat
cite-prefix
"0-9_.@-"
)))
(
let*
((
cite-chars
"[>|}]"
)
(
cite-prefix
"A-Za-z"
)
(
cite-suffix
(
concat
cite-prefix
"0-9_.@-`'\""
)))
(
list
'
(
"^To:"
.
font-lock-function-name-face
)
'
(
"^B?CC:\\|^Reply-to:"
.
font-lock-keyword-face
)
'
(
"^\\(Subject:\\)[ \t]*\\(.+\\)?"
(
1
font-lock-comment-face
)
(
2
font-lock-type-face
nil
t
))
;; Use EVAL to delay in case `mail-header-separator' gets changed.
'
(
eval
cons
(
concat
"^"
(
regexp-quote
mail-header-separator
)
"$"
)
'font-lock-comment-face
)
(
cons
(
concat
"^[ \t]*"
"\\(["
cite-prefix
"]+["
cite-suffix
"]*\\)?"
"[>|}].*"
)
'font-lock-reference-face
)
;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
`
(
,
cite-chars
(
,
(
concat
"\\=[ \t]*"
"\\(["
cite-prefix
"]+["
cite-suffix
"]*\\)?"
cite-chars
".*"
)
(
beginning-of-line
)
(
end-of-line
)
(
0
font-lock-reference-face
)))
'
(
"^\\(X-[A-Za-z0-9-]+\\|In-reply-to\\):.*"
.
font-lock-string-face
))))
"Additional expressions to highlight in Mail mode."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment