[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A better way to factor custom-set-faces (per OS)

From: Denis Bueno
Subject: Re: A better way to factor custom-set-faces (per OS)
Date: Thu, 27 Jul 2006 20:36:56 -0400
User-agent: Thunderbird (Macintosh/20060516)

Denis Bueno wrote:
Colin S. Miller wrote:

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.

And for anyone who might be interested in this thread in the present/future, I created ~/.emacs-custom-gtk.el & ~/.emacs-custom-carbon.el, put the correct custom-set-faces in each, and included the following in my .emacs:

    ;; `custom-file' is treated specially by Emacs. See
    (cond ((os-is "linux") (setq custom-file "~/.emacs-custom-gtk.el"))
          ((os-is "darwin") (setq custom-file "~/.emacs-custom-carbon.el")))
    (message "Using custom-file: '%s'" custom-file)
    (load custom-file)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]