From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1112 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.user Subject: Re: run agent in -batch mode reading a batch rc file instead of .gnus Date: Tue, 10 Sep 2002 20:02:35 -0700 Organization: Still searching... Message-ID: References: <87lm698cji.fsf@bundalo.shootybangbang.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667934 9863 80.91.229.2 (31 Jan 2006 00:38:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:38:54 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:39 2006 Original-Path: quimby.gnus.org!lackawana.kippona.com!news.infoave.net!arclight.uoregon.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3 Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: p-354.newsdawg.com User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:w13/QfG92hZ344GiO/jEfvwabHU= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1252 Original-Lines: 29 X-Gnus-Article-Number: 1252 Tue Jan 17 17:28:39 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1112 Archived-At: John Paul Wallington writes: > Harry Putnam wrote: > >> How can I run gnus in batch mode and force it to read some other rc >> file instead of gnus. > > Have you tried changing the value of `gnus-init-file'? (untested) I hadn't tried that no, but it turned out to be the right tool. A solution was posted on the ding list from Reiner Steib: > How can I run gnus in batch mode and force it to read some other rc > file instead of gnus. Reiner wrote (in part): [...] ,----[ C-h v gnus-init-file RET ] | gnus-init-file's value is "~/.gnus" | | Documentation: | Your Gnus Emacs-Lisp startup file name. | If a file with the `.el' or `.elc' suffixes exists, it will be read instead. `---- So I would try to use something similar to ... $ emacs [...] -eval "(setq gnus-init-file \"foo.el\")" [-f gnus] [...]