Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: nice summary-format
       [not found] <87smhjj8hi.fsf@rechner1.ddorf.de>
@ 2004-02-10 16:46 ` Glyn Millington
       [not found] ` <87ekt3m5cp.fsf@users.sourceforge.net>
  1 sibling, 0 replies; 2+ messages in thread
From: Glyn Millington @ 2004-02-10 16:46 UTC (permalink / raw)


Fabian Braennstroem <f.braennstroem@gmx.de> writes:
> Did anybody got the example from
>  http://www.emacswiki.org/cgi-bin/wiki/GnusFormatting
> to work? Or maybe anybody has a similar example using trees?

Hi Fabian,

Have a look at this, and don;t omit the footnote


http://my.gnus.org/node/view/121


My own version is as follows

8<------8<------8<------8<------8<------8<------8<------8<------8<------

 (setq
;;; ;; All of this is for Oort Gnus and higher:
;;; ;      gnus-summary-line-format "%U%R%z%(%[%4L: %-20,20n%]%B %s%)\n"
         gnus-summary-same-subject ""
         gnus-sum-thread-tree-root " >"
         gnus-sum-thread-tree-single-indent "  "
         gnus-sum-thread-tree-vertical "|"
         gnus-sum-thread-tree-indent " "
         gnus-sum-thread-tree-leaf-with-other "+-> "
         gnus-sum-thread-tree-single-leaf "`-> " 
         gnus-auto-select-next 'almost-quietly      
        gnus-auto-center-summary nil               
        gnus-summary-goto-unread nil               
        gnus-auto-select-first 'best              
        gnus-asynchronous t  
        gnus-signature-limit 10.0)  ; kill the monster sigs! 

;; thread faces!!!!!
(copy-face 'default 'mysubject)
(setq gnus-face-1 'mysubject)
 
(copy-face 'default 'mytime)
(set-face-foreground 'mytime "cornflowerblue")
(setq gnus-face-2 'mytime) 
 
(copy-face 'default 'mythreads)
(set-face-foreground 'mythreads "turquoise") 
(setq gnus-face-3 'mythreads) 
 
(copy-face 'default 'mygrey) 
(set-face-foreground 'mygrey "blue") 
(setq gnus-face-4 'mygrey) 
 
(copy-face 'default 'myblack) 
(set-face-foreground 'myblack "gold") 
(setq gnus-face-5 'myblack) 
 
(copy-face 'default 'mybiggernumbers) 
(set-face-foreground 'mybiggernumbers "seagreen") 
(setq gnus-face-6 'mybiggernumbers)


(setq gnus-summary-line-format (concat 
                                "%*%5{%U%R%z%}" 
                                "%4{|%}" 
                                "%2{%-10&user-date;%}"
                                "%4{|%}"
                                "%4{|%}"
                                "%2{ %}%(%-24,24n"
                                "%4{|%}" 
                                "%2{%5i%}" 
                                "%4{|%}" 
                                "%2{%6k %}%)"
                                "%4{|%}" 
                                "%2{ %}%3{%B%}%1{%s%}\n"))



;; Threading options
(setq gnus-fetch-old-headers 'some  
   gnus-build-sparse-threads 'some 
   gnus-summary-gather-subject-limit 'fuzzy
   gnus-summary-thread-gathering-function 'gnus-gather-threads-by-references 
;   gnus-summary-make-false-root 'dummy
    gnus-summary-make-false-root-always nil
  gnus-thread-ignore-subject t 
   gnus-thread-sort-functions '(gnus-thread-sort-by-number
   gnus-thread-sort-by-date  ; Dates matter...
   gnus-thread-sort-by-total-score) ; .. and scores matter more
   gnus-thread-hide-killed t)
8<------8<------8<------8<------8<------8<------8<------8<------8<------



I do it that way becaue I can't get the Unicode stuff to work on Xemacs,
though with Gnu Emacs it works nicely.

Good luck




Glyn


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: nice summary-format
       [not found] ` <87ekt3m5cp.fsf@users.sourceforge.net>
@ 2004-02-11 21:39   ` Ted Zlatanov
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Zlatanov @ 2004-02-11 21:39 UTC (permalink / raw)


On Tue, 10 Feb 2004, jornd@users.sourceforge.net wrote:

> Well. I just use
> 
> (setq gnus-summary-line-format
>       "%U%R %10&user-date; %6i  %B %(%4L: %*%-25,25a%) %s \n"
>       gnus-summary-same-subject ""
>       gnus-sum-thread-tree-root "•"
>       gnus-sum-thread-tree-single-indent "•"
>       gnus-sum-thread-tree-leaf-with-other "├─>"
>       gnus-sum-thread-tree-vertical "│"
>       gnus-sum-thread-tree-single-leaf "└─>"
>       )
> 
> which I happen to like, particularly together with
> 
> (setq gnus-build-sparse-threads 'all)
> 
> but I may be crazy.  It uses some unicode characters, though.  And
> no fancy colors :-)

Weird, I get this summary:

O   Tue 12:21      0  •   16: Dimitar Georgiev          O'Reilly 
O   Tue 18:36      0  └─>   28: USmivka                    
O   Tue  2:21      0  >    63: Nicolas M Kostoff         Re: Bylgarsko radio v interneta 
O   Tue  3:44      0    └─>   69: Emil Petkov                
O        4:55      0      ├─>    7: Emil Petkov               Svilen Stoicheff 
O   Tue 15:39      0      └─>   18: Chris D                   Re: Bylgarsko radio v interneta 

I love how it looks, but the ">" thread indicator is shifting the
third line to the right by 1 space (the "63:" and everything after it
should be 1 space to the left).

Any suggestions?

Thanks
Ted


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-11 21:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87smhjj8hi.fsf@rechner1.ddorf.de>
2004-02-10 16:46 ` nice summary-format Glyn Millington
     [not found] ` <87ekt3m5cp.fsf@users.sourceforge.net>
2004-02-11 21:39   ` Ted Zlatanov

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).