From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: Re: Dynamic setting of custom vars?
Date: Tue, 25 Mar 2003 18:08:26 +0100 [thread overview]
Message-ID: <rj4r5rgyr9.fsf@zuse.dina.kvl.dk> (raw)
In-Reply-To: b5pu8c$fta$1@newswest.sybase.com
Greg Fenton <greg.fenton.NO.SPAM@ianywhere.com> writes:
> Is what I'm doing at all possible? Is there a better way (should I
> simply avoid custom-set-variables)?
Avoiding custom-set-variables for system dependent variables are by far
the easiest solution. I recommend that.
Another solutions would set custom-file depending on the system
setting. Then all customize variables will in effect be system
dependent. For some, this may be the best solution.
A third solution would be
(cond ((string-match "my-laptop" (downcase (system-name)))
(setq glf-height 60))
((string-match "my-linux-box" (downcase (system-name)))
(setq glf-height 80)))
(custom-set-variables
'(default-frame-alist (list '(width . 81) (cons 'height glf-height)))
'(initial-frame-alist (list '(width . 81) (cons 'height glf-height))))
I.e. instead of using quote, build the list.
I don't recomment this, since if you customize the value later, you
lose the information. So you can just as well use setq, which is
simpler, and allows Customize to warn youif you try to change it.
prev parent reply other threads:[~2003-03-25 17:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 15:59 Dynamic setting of custom vars? Greg Fenton
2003-03-25 17:04 ` Stefan Monnier
2003-03-25 17:08 ` Per Abrahamsen [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=rj4r5rgyr9.fsf@zuse.dina.kvl.dk \
--to=abraham@dina.kvl.dk \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.