[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: time in summary line (was: Tweaking.)
From: |
Sharon Kimble |
Subject: |
Re: time in summary line (was: Tweaking.) |
Date: |
Sun, 23 Mar 2014 14:03:27 +0000 |
On Sun, 23 Mar 2014 14:39:39 +0100
Peter Münster <pmlists@free.fr> wrote:
> On Sun, Mar 23 2014, Sharon Kimble wrote:
>
> > * Summary line format
> > gnus-summary-line-format "%0{%U%R%z%}%3{│%} %1{%d%}
> > %3{│%}%4{%-20,20f%} %3{│%} %1{%B%}%s\n"
> >
> > gives this in the summary -
> > R. │ 23-Mar │ Cron Daemon │ * Cron
> > <root@london> /usr/bin/apt-get update
> >
> > which is very good except its not showing the time of posting. How
> > do I get that please?
>
> "&user-date;" is useful:
>
> --8<---------------cut here---------------start------------->8---
> gnus-user-date-format-alist is a variable defined in `gnus-sum.el'.
> Its value is shown below.
>
> Documentation:
> Specifies date format depending on age of article.
> This is an alist of items (AGE . FORMAT). AGE can be a number (of
> seconds) or a Lisp expression evaluating to a number. When the age of
> the article is less than this number, then use `format-time-string'
> with the corresponding FORMAT for displaying the date of the article.
> If AGE is not a number or a Lisp expression evaluating to a
> non-number, then the corresponding FORMAT is used as a default value.
>
> Note that the list is processed from the beginning, so it should be
> sorted by ascending AGE. Also note that items following the first
> non-number AGE will be ignored.
>
> You can use the functions `gnus-seconds-today', `gnus-seconds-month'
> and `gnus-seconds-year' in the AGE spec. They return the number of
> seconds passed since the start of today, of this month, of this year,
> respectively.
>
> You can customize this variable.
>
> This variable was introduced, or its default value was changed, in
> version 24.1 of Emacs.
>
>
> Value: (((gnus-seconds-today)
> . "%H:%M")
> ((+
> (* 60 60 24)
> (gnus-seconds-today))
> . "Yesterday")
> ((* 60 60 24 5)
> . "%A")
> ((gnus-seconds-year)
> . "%b %d")
> (t . "%Y/%m/%d"))
>
> Original value was
> (((gnus-seconds-today)
> . "Today, %H:%M")
> ((+ 86400
> (gnus-seconds-today))
> . "Yesterday, %H:%M")
> (604800 . "%A %H:%M")
> ((gnus-seconds-month)
> . "%A %d")
> ((gnus-seconds-year)
> . "%B %d")
> (t . "%b %d %Y"))
> --8<---------------cut here---------------end--------------->8---
>
Thanks, but I have this -
(setq gnus-thread-sort-functions '(gnus-thread-sort-by-number (not
gnus-thread-sort-by-date)) ; inverted sorting: newest threads on top
gnus-treat-buttonize t ; Add buttons
gnus-treat-buttonize-head 'head ; Add buttons to the head
gnus-treat-emphasize t ; Emphasize text
gnus-treat-display-smileys t ; Use Smilies
gnus-treat-strip-cr 'last ; Remove carriage returns
gnus-treat-hide-headers 'head ; Hide headers
gnus-boring-article-headers '(empty followup-to newsgroups many-to
reply-to)
gnus-treat-hide-boring-headers 'head ; -Hide boring headers
;gnus-fetch-old-headers 'some ; prevent teared threads by loading older
but read postings
gnus-fetch-old-headers 250 ; this should achieve the same result, without
the excessive waiting for some groups
gnus-sum-thread-tree-single-indent "* "
gnus-sum-thread-tree-single-leaf "+-> "
gnus-summary-display-arrow t
gnus-summary-line-format "%0{%U%R%z%}%3{│%} %1{%d%} %3{│%} %4{%-20,20f%}
%3{│%} %1{%B%}%s\n"
;gnus-summary-line-format "%U%R%z%d %I%(%[ %s %]%)\n"
;gnus-summary-line-format "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n" ; default
)
but I can't see how to add '&user-date;' in the middle of a list? Perhaps I'm
being dim?
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, emacs 24.3.1
Registered Linux user 561944
signature.asc
Description: PGP signature
- Re: How to get mail from localhost?, (continued)
- Re: How to get mail from localhost?, Glyn Millington, 2014/03/22
- Re: How to get mail from localhost?, Sharon Kimble, 2014/03/22
- Re: How to get mail from localhost?, Adam Sjøgren, 2014/03/22
- Re: How to get mail from localhost?, Sharon Kimble, 2014/03/22
- Re: How to get mail from localhost?, Adam Sjøgren, 2014/03/22
- Re: How to get mail from localhost?, Sharon Kimble, 2014/03/22
- Re: How to get mail from localhost?, Adam Sjøgren, 2014/03/22
- Tweaking., Sharon Kimble, 2014/03/23
- time in summary line (was: Tweaking.), Peter Münster, 2014/03/23
- Re: time in summary line (was: Tweaking.),
Sharon Kimble <=
- Re: time in summary line, Peter Münster, 2014/03/23
- Re: time in summary line, Adam Sjøgren, 2014/03/23
- Re: time in summary line, Peter Münster, 2014/03/23
- Message not available
- Re: How to get mail from localhost?, Pascal J. Bourguignon, 2014/03/22
- Re: How to get mail from localhost?, Sharon Kimble, 2014/03/22
Re: How to get mail from localhost?, Pascal J. Bourguignon, 2014/03/22