From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.help Subject: Re: Using the same custom file in two different OSes Date: Tue, 15 Jan 2013 00:00:04 +0100 Message-ID: References: <419D9CDD3C2740E3B0E0CDE556F7BD12@us.oracle.com> <3F565B0F873C4BCCAA938FB0B136521E@us.oracle.com> <8E533B01-4964-43C6-8831-F73196C55D40@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358204802 3863 80.91.229.3 (14 Jan 2013 23:06:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 23:06:42 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org list" To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 15 00:06:59 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 1Tut7L-0003Pc-Hs for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jan 2013 00:06:59 +0100 Original-Received: from localhost ([::1]:46066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut75-00062V-8B for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 18:06:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut6z-00062H-U7 for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 18:06:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tut6y-0004TU-Qc for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 18:06:37 -0500 Original-Received: from mail-oa0-f50.google.com ([209.85.219.50]:42508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut6y-0004TQ-Lr for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 18:06:36 -0500 Original-Received: by mail-oa0-f50.google.com with SMTP id n16so4576070oag.37 for ; Mon, 14 Jan 2013 15:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=qnQutKEIUtID9+koRPhS1xHaNLndHpHEJm2J15IILzc=; b=uSWurkvVAXEGloqXW6yWZiWUSj7q+8bcrFM0l1264Y6meU9IbjKxlPo6/nXiiBqlvZ f/WYZQPBlncaOxwK7YtMPWL+TQcxzwk/B6mnPfYC3PU1dopY0dE/5Ugqzg8crqkLAj+t ES0B0BCC3Ry9AJSq89X6wqCA3/VyiyRY9HMC8T7IwWMQvaOudeupup1O6S/8z2ipCz53 LQgZ5OR10JjA2fhE61kjH2w5/bL2PYxLaGZrpXW2k3QEQNyA28uYiEd5lJrAAINXI/Ga va8eHcczlufZr6vjtVbqIVBOEYa4DSYoQFKU9pP1SzNnv/QPdZyj0c7jny/g0IYleQPj aR3g== Original-Received: by 10.60.169.105 with SMTP id ad9mr17063002oec.99.1358204404551; Mon, 14 Jan 2013 15:00:04 -0800 (PST) Original-Received: by 10.60.11.39 with HTTP; Mon, 14 Jan 2013 15:00:04 -0800 (PST) In-Reply-To: <8E533B01-4964-43C6-8831-F73196C55D40@Web.DE> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.219.50 X-BeenThere: help-gnu-emacs@gnu.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@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88624 Archived-At: >> Mmmm I'm afraid I'm unable to keep my custom file free of my >> platform-specific stuff. > > See whether custom-file (a variable) can do something for you! > > One thing is sure: the custom-set-variables and custom-set-faces can only= exist once. For GNU Emacs (not the file system). So I have one single body= which then loads via (load custom-file) the customisations for different G= NU Emacs versions. They have names =E0 la ~/.emacs-Abrichtung-.el =96 but it could be OS specific as well. > > Practical hint: move all your customisation in one version of custom-file= . Copy this file to the other variants. Then edit these variants on the spe= cific platforms via GNU Emacs' customisation interface! Thanks, that would be one possible solution, but as I said in the initial post, I don't want to have redundancy (i.e. several custom files), because I want to be able to tweak some customization in one machine/OS and have the resulting customization automatically applied to the other machine/OS. --=20 Dani Moncayo