惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
WordPress大学
WordPress大学
D
DataBreaches.Net
腾讯CDC
小众软件
小众软件
B
Blog RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
U
Unit 42
Y
Y Combinator Blog
V
V2EX
I
InfoQ
D
Docker
量子位
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
A
About on SuperTechFans
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog

博客园 - I love I think

Tomcat 配置集锦 eclipse+tomcat python的对象与名字绑定(转贴,此文甚好) 单引号、双引号和三双引号的区别 - I love I think 这几天一直在看Latex,试着排版了一份试卷。 开机即打开Numlock - I love I think 哈夫曼树(调试没通过,郁闷) 新闻组上看到一篇关于linux内核编译的文章,留待日后参考。 调整显示屏幕偏移和刷新频率[zt] The best way to predict future is to invent it.------Alan Kay 数学学科分类标准 KMP算法 有趣的东西太多了。 nvidia驱动安装 linux内核源码目录结构 Linux打印介绍【转贴】 矩阵的相似对角化到底有什么用?该不会是纯粹的理论吧? 宫崎骏的动画片真有意思啊。 elisp1
Keep track of own postings using Summary Highlighting (Su...
I love I think · 2005-01-19 · via 博客园 - I love I think

How to use Summary Highlighting to keep track of own postings an followups to it.

Did you ever wish that your postings and followups to them would
be displayed with another face? Hey, this is Gnus, so let's do
this!

In this example, we will use three faces: one for your own
postings, one for direct followups to them and one for indirect
followups (followups to followups to them).

Making the faces

First, we have to define the faces. This takes the basic face
information from gnus-summary-high-unread-face and
adjusts the background.

(require 'gnus-sum)
(defface dz-gnus-own-posting-face nil
"Use this face to display own postings in Summary Buffer")
(copy-face 'gnus-summary-high-unread-face 'dz-gnus-own-posting-face)
(set-face-background 'dz-gnus-own-posting-face "aquamarine")

(defface dz-gnus-direct-fup-face nil
"Use this face to display direct fups to my postings.")
(copy-face 'gnus-summary-high-unread-face 'dz-gnus-direct-fup-face)
(set-face-background 'dz-gnus-direct-fup-face "yellow")

(defface dz-gnus-indirect-fup-face nil
"Use this face to display indirect fups to my postings")
(copy-face 'gnus-summary-high-unread-face 'dz-gnus-indirect-fup-face)
(set-face-background 'dz-gnus-indirect-fup-face "lightgreen")

Scoring the articles

To do the scoring, you have to use Message-IDs with an unique
domain part. Let's say your domain part is
your.domain.here, put this in your all.SCORE:

(
("message-id"
("@your.domain.here>" +9000 nil s))
("references"
("@your\\.domain\\.here>$" +8000 nil r)
("@your\\.domain\\.here>.+@" +7000 nil r)
("@your\\.domain\\.here>.+@your\\.domain\\.here>$" -7000 nil r))
((&
("message-id" "@your.domain.here>" s)
("references" "@your.domain.here>" s))
-7000 nil))

Your own postings get a score of +9000, followups to it +8000
and indirect followups +7000.

Telling Gnus to use the faces

To make Gnus use the faces, we have to adjust
gnus-summary-highlight:

(add-to-list 'gnus-summary-highlight
'((and (> score 8500) (eq mark gnus-unread-mark)) . dz-gnus-own-posting-face))

(add-to-list 'gnus-summary-highlight
'((and (>= 8500 score) (>= score 7500) (eq mark gnus-unread-mark)) . dz-gnus-direct-fup-face))

(add-to-list 'gnus-summary-highlight
'((and (>= 7499 score) (>= score 6500) (eq mark gnus-unread-mark)) . dz-gnus-indirect-fup-face))

That's it!

Known problems

Maybe this does not work if the postings are scored by other
score file entries which raises or lowers score with more than 499.
If you used to work with `L' or `I', you
should set gnus-score-interactive-default-score to a
value lower than 499.

(setq gnus-score-interactive-default-score 400)

Adaptive Scores should not get in these high regions, so don't
mind.

posted on 2005-01-19 16:46  I love I think  阅读(1571)  评论()    收藏  举报