Created
October 26, 2008 22:49
-
-
Save buzztaiki/19966 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun wl-highlight-message-reverse-citation () | |
"Highlight citation prefix only, and unhighlight those messages." | |
(goto-char (point-min)) | |
(while (not (eobp)) | |
(goto-char (or (next-single-property-change (point) 'face) (point-max))) | |
(let ((face (get-text-property (point) 'face))) | |
(when (memq face wl-highlight-citation-face-list) | |
(put-text-property (point) (save-excursion (forward-line) (point)) 'face nil) | |
(put-text-property (line-beginning-position) (point) 'face face) | |
(forward-line))))) | |
(setq wl-highlight-force-citation-header-regexp "^$") | |
(add-hook 'wl-highlight-message-hook 'wl-highlight-message-reverse-citation) | |
(mapatoms | |
(lambda (x) | |
(when (and (facep x) | |
(string-match "^wl-highlight-message-cited-text-[0-9]+" | |
(symbol-name x))) | |
(set-face-attribute x nil :weight 'bold)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment