Skip to content

Instantly share code, notes, and snippets.

@buzztaiki
Created October 26, 2008 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buzztaiki/19966 to your computer and use it in GitHub Desktop.
Save buzztaiki/19966 to your computer and use it in GitHub Desktop.
(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