From: Greg Fenton <greg.fenton.NO.SPAM@ianywhere.com>
Subject: Dynamic setting of custom vars?
Date: Tue, 25 Mar 2003 10:59:15 -0500 [thread overview]
Message-ID: <b5pu8c$fta$1@newswest.sybase.com> (raw)
I am trying to set som custom vars based on conditions of the
system we are running on.
In my .emacs, I have the following code:
;-----------------------------------------------------------
(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
(quote ((width . 81) (height . glf-height))))
'(initial-frame-alist
(quote ((width . 81) (height . glf-height))))
)
;-----------------------------------------------------------
However, it appears that the value of glf-height is being ignored
during the creation of the intial frame (trying to create
subsequent frames throws an error "(wrong-type-argument integerp
glf-height)".
I assume I must reference the variable in some other way in the
custom-set-variables or that the value of glf-height is not
visible to the make-frame-command.
Is what I'm doing at all possible? Is there a better way (should
I simply avoid custom-set-variables)?
Thanks in advance,
greg.fenton
next reply other threads:[~2003-03-25 15:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 15:59 Greg Fenton [this message]
2003-03-25 17:04 ` Dynamic setting of custom vars? Stefan Monnier
2003-03-25 17:08 ` Per Abrahamsen
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='b5pu8c$fta$1@newswest.sybase.com' \
--to=greg.fenton.no.spam@ianywhere.com \
/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.