From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/5356 Path: main.gmane.org!not-for-mail From: jvinson@cheux.ecs.umass.edu (Jack Vinson) Newsgroups: gmane.emacs.gnus.general Subject: Re: How to set vars for mail groups? Date: 28 Feb 1996 09:27:00 -0500 Organization: University of Massachusetts Message-ID: References: <199602281329.OAA08450@filippo.sfs.nphil.uni-tuebingen.de> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035145971 32539 80.91.224.250 (20 Oct 2002 20:32:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:32:51 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.3/8.6.9) with SMTP id HAA24141 for ; Wed, 28 Feb 1996 07:15:43 -0800 Original-Received: from cheux.ecs.umass.edu (cheux.ecs.umass.edu [128.119.82.11]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Wed, 28 Feb 1996 15:33:39 +0100 Original-Received: by cheux.ecs.umass.edu (5.65/DEC-Ultrix/4.3) id AA20199; Wed, 28 Feb 1996 09:27:04 -0500 Original-To: ding@ifi.uio.no In-Reply-To: John Griffith's message of Wed, 28 Feb 1996 14:29:03 +0100 Original-Lines: 37 Xref: main.gmane.org gmane.emacs.gnus.general:5356 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:5356 >>>>> "JG" == John Griffith writes: JG> Is there a better way to set general variables for a range of groups or JG> all groups from a server? Yes. I Do it in the gnus-summary-generate-hook: (defun jmv-gnus-prepare-groups () ;; My mail groups (cond ((string-match "nnbabyl" gnus-newsgroup-name) (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date gnus-thread-sort-by-total-score) )) ;; Archive groups ((string-match "nnfolder" gnus-newsgroup-name) (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date) )) ;; Draft group ((string-match "nndraft" gnus-newsgroup-name) (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date) )) ;; All others (t (setq gnus-thread-sort-functions '(gnus-thread-sort-by-subject gnus-thread-sort-by-total-score) )) ) ) (add-hook 'gnus-summary-generate-hook 'jmv-gnus-prepare-groups) -- __o __o __o __o __o __o Jack Vinson _`\<_`\<_ _`\<_ _`\<_`\<_ _`\<_ Captain Jack - Purple Puddle Eater (_)/---/(_) (_)/(_) (_)/---/(_) (_)/(_) Sunderland, MA jvinson@cheux.ecs.umass.edu