From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5969 Path: news.gmane.org!not-for-mail From: =?iso-8859-15?Q?S=E9bastien?= Kirche Newsgroups: gmane.emacs.gnus.user Subject: Re: How to define this summary-line-format? Date: Mon, 07 Nov 2005 14:03:28 +0100 Organization: Aucune. Message-ID: References: <86slu8eler.fsf@sl392.st-edmunds.cam.ac.uk> Reply-To: =?iso-8859-15?Q?S=E9bastien?= Kirche NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138671593 29586 80.91.229.2 (31 Jan 2006 01:39:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:39:53 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:36:06 2006 Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 195.25.216.129 Original-X-Trace: yeuse.cuq.org 1131368624 62658 195.25.216.129 (7 Nov 2005 13:03:44 GMT) Original-X-Complaints-To: abuse@cuq.org Original-NNTP-Posting-Date: Mon, 7 Nov 2005 13:03:44 +0000 (UTC) X-Face: ;T}O6aj2o*d:|9po%NCuYvExN3]<#cHr0"FaWCh[}WVn6&@L)YWO'&6AO5Ex:MX=H;.^e}o Td*OaFQEBc_xu%+ChwRl!KK`I'["$^aO1gIN{4OyBdO@1HHD5YO#[kiVCk|/-|mmYnU8yTp+eOv."d 1.G3;ro0Q/`,UY+vY/#5b/{OYxE+X\)tc~p~1vbmZ!o4sciW+e8MW|Pz|nl`l*}]8[#1zQO"]d2*{d wrTKu]5t*Gy_pm3e8o=:(c_ju'zlQ<[oJ|\XjgQQmWZC7S]-Fmp\eBHnBO']/te~/;\@l" D#:h)8Q User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (powerpc-apple-darwin7.9.0) Cancel-Lock: sha1:fJHmJtZeZSZRR0Z+WhpJOx6Fy0Q= Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!fu-berlin.de!feed.ac-versailles.fr!news.cuq.org!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:6111 Original-Lines: 84 X-Gnus-Article-Number: 6111 Tue Jan 17 17:36:06 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5969 Archived-At: At 12:11 on nov 7 2005, leon said : > Hi there, > > I started using gnus hours ago so please forgive my ignorance. > > This screenshot (http://my.gnus.org/node/316) is absolutely amazing. > I'm trying to mimic one but have some difficulties. > > 1. vertical dashed separation line (`|' doesn't look dashed) It is not only a modeline format, it also uses gnus buffers configuration (look at the docstring of gnus-buffer-configuration) For example I use the following to have the frame splitted horizontally while reading a message with the message body at the bottom and the group summary on the top : (gnus-add-configuration '(article (vertical 1.0 (summary 13 point) (article 1.0) ))) > 2. abbreviated date (i.e. "Mo 13") With a custom date format : ;; affichage de la date en relatif (setq gnus-user-date-format-alist '(((gnus-seconds-today) . " %k:%M") ;dans la journée = 14:39 ((+ 86400 (gnus-seconds-today)) . "hier %k:%M") ;hier = hier 14:39 ((+ 604800 (gnus-seconds-today)) . "%a %k:%M") ;dans la semaine = sam 14:39 ((gnus-seconds-month) . "%a %d") ;ce mois = sam 28 ((gnus-seconds-year) . "%b %d") ;durant l'année = mai 28 (t . "%b %d '%y"))) ;le reste = mai 28 '05 The formats are those of format-time-string and should use your locals to write the days and months names in your language. > 3. very nice threading format You need to set the use of the thread display in the mode line format, for example : (setq gnus-summary-line-format (concat "%*%5{%U%R%z%}" "%4{|%}" "%2{%-10&user-date;%}" "%4{|%}" "%2{ %}%(%-24,24f" "%4{|%}" "%2{%5i%}" "%4{|%}" "%2{%6k %}%)" "%4{|%}" "%2{ %}%3{%B%}%1{%s%}\n")) ;%B = threads display The threads nice characters can be obtained by changing the default display; It works nice under GNU/Linux and OSX (with atsui support), I have not tested recently with Windows. (setq gnus-sum-thread-tree-root "\x490b3 ") ; "> " (setq gnus-sum-thread-tree-false-root "\x490b3 ") ; "> " (setq gnus-sum-thread-tree-single-indent " ") ; "" (setq gnus-sum-thread-tree-leaf-with-other "\x4903c\x49020\x490fb ") ; "+-> " (setq gnus-sum-thread-tree-vertical "\x49022") ; "| " (setq gnus-sum-thread-tree-single-leaf "\x49034\x49020\x490fb ") ; "\\-> " Some variants : (setq gnus-sum-thread-tree-root "\x4912f ") ; "> " (setq gnus-sum-thread-tree-false-root "\x490f8 ") ; "> " (setq gnus-sum-thread-tree-false-root "\x4912f ") ; "> " (setq gnus-sum-thread-tree-single-indent "\x4912e ") ; "" (setq gnus-sum-thread-tree-single-indent "\x490b3 ") ; "" (setq gnus-sum-thread-tree-single-leaf "\x490b0\x49020\x490fa ") ; "\\-> " > Any ideas? Let's try what I wrote and look at the docstrings of the different variables and function to know the format specifiers to be able to build your own display. HTH. -- Sébastien Kirche