From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Re: Using the same custom file in two different OSes Date: Thu, 17 Jan 2013 09:43:21 +0100 Organization: Sebastien Vauban Message-ID: <86libsb3o6.fsf@somewhere.org> References: <419D9CDD3C2740E3B0E0CDE556F7BD12@us.oracle.com> <3F565B0F873C4BCCAA938FB0B136521E@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358412318 5088 80.91.229.3 (17 Jan 2013 08:45:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 08:45:18 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Jan 17 09:45:31 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tvl6H-0007a2-VS for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 09:45:30 +0100 Original-Received: from localhost ([::1]:49761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvl61-0005Qm-DW for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 03:45:13 -0500 Original-Path: usenet.stanford.edu!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Injection-Info: mx04.eternal-september.org; posting-host="56267169612f95d5ad2eeba965a549c1"; logging-data="17589"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX18ZunCfx3fnvkkH582mWKBy" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.91 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:gM1v9GEa9yWBx4hU3dwTn3E0eOE= sha1:FevZriNtVm2bN84yghY0ParFAOA= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:196365 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:88660 Archived-At: Dani, Dani Moncayo wrote: > So, now I'm able to keep my custom file free of platform-dependent > settings, which are moved to the init file, like this: > > ;; Set the custom-file > (setq custom-file "whatever") > ;; Load the platform-independent customization > (load custom-file) > ;; Set the platform-specific customization > (if (display-graphic-p) ... FYI, I'm using: (if window-system ... but that comes down to pretty much the same thing, it seems. Best regards, Seb -- Sebastien Vauban