Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: special settings for Gnus vs. regular Emacs (was: tarball for 5.13?)
Date: Wed, 27 Oct 2010 10:33:23 -0500	[thread overview]
Message-ID: <87bp6fzm4c.fsf_-_@lifelogs.com> (raw)
In-Reply-To: <87r5fe3yx4.fsf@lifelogs.com>

On Mon, 25 Oct 2010 13:33:27 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote: 

TZ> Which reminds me: I want to set up a separate recentf save file for Gnus
TZ> vs. regular Emacs, along with some other variables.  Is there a way to
TZ> do that on startup if Emacs is started with "-f gnus ..." without
TZ> resorting to environment variables?

Assuming Emacs is started with "-f gnus" and you don't expect "gnus" to
show up on the command line otherwise:

(setq tzz-gnus-running-p (member "gnus" command-line-args)
      tzz-general-suffix (if tzz-gnus-running-p "gnus" "emacs"))

(setq session-save-file (format "~/.session.%s" tzz-general-suffix)
      recentf-save-file (format "~/.recentf.%s" tzz-general-suffix))

Ted




      reply	other threads:[~2010-10-27 15:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-21 18:33 tarball for 5.13? Bill White
2010-10-22 14:50 ` Lars Magne Ingebrigtsen
2010-10-22 15:12   ` Bill White
2010-10-25 18:33     ` Ted Zlatanov
2010-10-27 15:33       ` Ted Zlatanov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bp6fzm4c.fsf_-_@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).