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

推荐订阅源

T
Tenable Blog
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
H
Help Net Security
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 司徒正美
量子位
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
Scott Helme
Scott Helme
The Last Watchdog
The Last Watchdog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
AI
AI
WordPress大学
WordPress大学
Security Archives - TechRepublic
Security Archives - TechRepublic
Google Online Security Blog
Google Online Security Blog
U
Unit 42
V2EX - 技术
V2EX - 技术
MongoDB | Blog
MongoDB | Blog
Schneier on Security
Schneier on Security
博客园 - Franky
H
Heimdal Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
Cloudbric
Cloudbric
B
Blog RSS Feed
N
News | PayPal Newsroom
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
Hacker News - Newest:
Hacker News - Newest: "LLM"
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园_首页
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
雷峰网
雷峰网

博客园 - 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 (Submitted by dzimmerm on Sun, 12/28/2003 - 18:31. )
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)  评论()    收藏  举报