From: Michael Heerdegen <michael_heerdegen@web.de>
To: info-gnus-english@gnu.org
Subject: Re: Using things from 'custom.el'
Date: Thu, 27 Mar 2014 16:15:24 +0100 [thread overview]
Message-ID: <87siq3smer.fsf@web.de> (raw)
In-Reply-To: <8761n0pkdd.fsf@talktalk.net>
Sharon Kimble <boudiccas@talktalk.net> writes:
> I have this line in my 'custom.el' - '(gnus-fetch-old-headers 300) but
> how do I call it from within gnus please.
For variables, in 99% of the cases, setq-default is the right thing to
use - in your case, for example, just
(setq-default gnus-fetch-old-headers 300)
In very rare cases, custom uses a specialized setter function and using
just setq-default won't work.
BTW, `setq-default' is like `setq', but always sets the default
(i.e. the global) binding of a variable even when it is buffer local.
Michael.
prev parent reply other threads:[~2014-03-27 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 0:15 Sharon Kimble
2014-03-27 6:57 ` Glyn Millington
2014-03-27 15:15 ` Michael Heerdegen [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=87siq3smer.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=info-gnus-english@gnu.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).