Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Using alternatives with gnus-posting-styles
@ 2005-10-07 18:00 David Sumbler
  2005-10-07 18:23 ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: David Sumbler @ 2005-10-07 18:00 UTC (permalink / raw)


Suppose I have two groups called GroupA and GroupB.

I want to apply some posting style (say, a signature file) to both.  I
have tried various ways to use some sort of "or" or "|" expression,
but without success.  So far, I can only make things work correctly
with:

(setq gnus-posting-styles
'(("GroupA"
   (signature-file "~/somesigfile"))
  ("GroupB"
   (signature-file "~/somesigfile"))
))

Is there a more elegant way of doing it?

David

-- 

David Sumbler

Please reply with a followup to the newsgroup.

However, if you _really_ want to send me an e-mail,
replace "nospam" in my address with "aeolia".


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

* Re: Using alternatives with gnus-posting-styles
  2005-10-07 18:00 Using alternatives with gnus-posting-styles David Sumbler
@ 2005-10-07 18:23 ` Reiner Steib
  0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2005-10-07 18:23 UTC (permalink / raw)


On Fri, Oct 07 2005, David Sumbler wrote:

> (setq gnus-posting-styles
> '(("GroupA"
>    (signature-file "~/somesigfile"))
>   ("GroupB"
>    (signature-file "~/somesigfile"))
> ))
>
> Is there a more elegant way of doing it?

(setq gnus-posting-styles
      '(("GroupA\\|GroupB"
	 (signature-file "~/somesigfile")))

,----[ (info "(emacs)Regexps") ]
| Syntax of Regular Expressions
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


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

end of thread, other threads:[~2005-10-07 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-07 18:00 Using alternatives with gnus-posting-styles David Sumbler
2005-10-07 18:23 ` Reiner Steib

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