From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Denis Bueno Newsgroups: gmane.emacs.help Subject: Re: A better way to factor custom-set-faces (per OS) Date: Thu, 27 Jul 2006 20:12:16 -0400 Message-ID: <44C95660.3040102@gmail.com> References: <200607251857.55711.sidgmanj1@unlnotes.unl.edu> <44c91426$0$15781$14726298@news.sunsite.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154045570 11992 80.91.229.2 (28 Jul 2006 00:12:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 00:12:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 28 02:12:34 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6Fxx-0005nu-Jo for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jul 2006 02:12:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6Fxx-0001Pp-0p for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Jul 2006 20:12:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6Fxm-0001Pk-TW for help-gnu-emacs@gnu.org; Thu, 27 Jul 2006 20:12:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6Fxk-0001PY-Ad for help-gnu-emacs@gnu.org; Thu, 27 Jul 2006 20:12:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6Fxk-0001PV-56 for help-gnu-emacs@gnu.org; Thu, 27 Jul 2006 20:12:20 -0400 Original-Received: from [130.207.165.165] (helo=deliverator5.gatech.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1G6Fzc-0006ru-6T for help-gnu-emacs@gnu.org; Thu, 27 Jul 2006 20:14:16 -0400 Original-Received: from deliverator5.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 0E87A1D1A81; Thu, 27 Jul 2006 20:12:19 -0400 (EDT) (envelope-from dbueno@gmail.com) Original-Received: from mailprx1.gatech.edu (mailprx1.prism.gatech.edu [130.207.171.15]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.mail.gatech.edu", Issuer "RSA Data Security, Inc." (verified OK)) by deliverator5.gatech.edu (Postfix) with ESMTP id DC4D81D1A8D; Thu, 27 Jul 2006 20:12:18 -0400 (EDT) (envelope-from dbueno@gmail.com) Original-Received: from [192.168.1.101] (c-24-98-133-73.hsd1.ga.comcast.net [24.98.133.73]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=gtg385h@mailprx1.gatech.edu, sender=n/a) by mailprx1.gatech.edu (Postfix) with ESMTP id 75F2F265C; Thu, 27 Jul 2006 20:12:18 -0400 (EDT) (envelope-from dbueno@gmail.com) User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060516) Original-To: "Colin S. Miller" In-Reply-To: <44c91426$0$15781$14726298@news.sunsite.dk> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36310 Archived-At: Colin S. Miller wrote: > Denis, > > On XEmacs, which separates out the init.el and custom.el files, I use > (setq custom-file (concat "~/.xemacs/custom-" (symbol-name system-type) > ".el")) > in my init.el (.emacs.el) so that the customisation file is different for > each OS I run XEmacs on. > This is a good suggestion; I am using a set-up like this now. My only quibble is that my custom-set-variables form, and not just custom-set-faces, ends up there, too. Is there a compelling reason that it should be OS-specific? Currently all my custom-set-variables apply to both platforms: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(auto-save-interval 100) '(case-fold-search t) '(column-number-mode t) '(current-language-environment "English") '(default-major-mode (quote text-mode)) '(global-auto-revert-mode t) '(indent-tabs-mode nil) '(inhibit-splash-screen t) '(mark-even-if-inactive t) '(org-agenda-files (quote ("~/org/school.org" "~/org/bscs.org" "~/org/home.org" "~/org/jnp-verify.org" "~/org/phd.org" "~/org/manolios.org" "~/org/abl.org"))) '(ring-bell-function (quote ignore) t) '(save-place t nil (saveplace)) '(scroll-bar-mode (quote left)) '(show-paren-style (quote mixed)) '(show-trailing-whitespace nil) '(transient-mark-mode t) '(truncate-lines nil) '(uniquify-buffer-name-style (quote forward) nil (uniquify))) Is there an easy way to maintain all these variable settings across both custom files? -Denis