help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set ALL faces to one face


From: Emanuel Berg
Subject: Re: set ALL faces to one face
Date: Sat, 26 Dec 2020 15:56:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Oh, I had that configured! [last]
>
> But ... does that configuration make sense? It looks like I'm
> just setting everything to ... the way it should be?
>
> Anyway it looks good so I guess I shouldn't fix it :)
>
> (setq gnus-server-line-format "%3=%h: %w %30=%s\n")
>
> ;; (setq gnus-server-font-lock-keywords nil)
> (setq gnus-server-font-lock-keywords
>       '(("(\\(agent\\))"   1 'gnus-server-agent)
>         ("(\\(closed\\))"  1 'gnus-server-closed)
>         ("(\\(denied\\))"  1 'gnus-server-denied)
>         ("(\\(offline\\))" 1 'gnus-server-offline)
>         ("(\\(opened\\))"  1 'gnus-server-opened)
>         ("\\(.*:\\)\\(.*\\) "
>          (2 'font-lock-comment-face)) ))

This code, almost to the letter, is already in gnus-srvr.el,
lines 240-246. Don't know who stole it from who, or if several
people rote it and it appeared independently from each other,
just like civilization!

Anyway that means I just have to do:

(setq gnus-server-line-format "     %0{%8h%}: %1{%13=%w%} %30=%s\n")

(push '("\\(.*:\\)\\(.*\\) " (2 'font-lock-comment-face))
      gnus-server-font-lock-keywords)

One should be able to specify faces in
`gnus-server-line-format' just like for other Gnus format
strings but I don't get it to work. Well, nevermind.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]