From: Sharon Kimble <boudiccas@talktalk.net>
To: info-gnus-english@gnu.org
Subject: Re: time in summary line (was: Tweaking.)
Date: Sun, 23 Mar 2014 14:03:27 +0000 [thread overview]
Message-ID: <20140323140327.2aacee62@london> (raw)
In-Reply-To: <87k3bl11b8.fsf_-_@micropit.couberia.selfip.net>
[-- Attachment #1.1: Type: text/plain, Size: 3882 bytes --]
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
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 162 bytes --]
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
next prev parent reply other threads:[~2014-03-23 14:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-21 19:27 How to get mail from localhost? Sharon Kimble
2014-03-21 19:58 ` Adam Sjøgren
2014-03-21 23:17 ` Sharon Kimble
2014-03-22 12:50 ` Adam Sjøgren
2014-03-22 15:16 ` Sharon Kimble
2014-03-22 7:15 ` Glyn Millington
2014-03-22 15:18 ` Sharon Kimble
2014-03-22 15:41 ` Adam Sjøgren
2014-03-22 16:37 ` Sharon Kimble
2014-03-22 18:40 ` Adam Sjøgren
2014-03-22 20:34 ` Sharon Kimble
2014-03-22 20:58 ` Adam Sjøgren
2014-03-23 12:52 ` Tweaking Sharon Kimble
2014-03-23 13:39 ` time in summary line (was: Tweaking.) Peter Münster
2014-03-23 14:03 ` Sharon Kimble [this message]
2014-03-23 16:35 ` time in summary line Peter Münster
2014-03-23 16:58 ` Adam Sjøgren
2014-03-23 20:33 ` Peter Münster
[not found] ` <mailman.17864.1395506256.10748.info-gnus-english@gnu.org>
2014-03-22 16:46 ` How to get mail from localhost? Pascal J. Bourguignon
2014-03-22 17:15 ` Sharon Kimble
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140323140327.2aacee62@london \
--to=boudiccas@talktalk.net \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).