From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Walrond Newsgroups: gmane.emacs.help Subject: Re: how to keep .emacs files in synch Date: Wed, 03 Oct 2007 20:30:24 +0100 Message-ID: <4703EDD0.4050709@walrond.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191439721 16235 80.91.229.12 (3 Oct 2007 19:28:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2007 19:28:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: kj Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 03 21:28:38 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Id9tZ-00045e-28 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Oct 2007 21:28:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id9tR-0000Yu-Lk for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Oct 2007 15:28:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id9tD-0000YZ-Tm for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 15:28:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id9tC-0000YB-ID for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 15:28:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id9tC-0000Y6-Be for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 15:28:10 -0400 Original-Received: from marvin.h-e-r-e-s-y.com ([87.106.62.5]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Id9t9-00077P-GP for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 15:28:10 -0400 Original-Received: from host86-151-174-133.range86-151.btcentralplus.com ([86.151.174.133] helo=[192.168.1.67]) by marvin.h-e-r-e-s-y.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1Id9zi-0001IZ-Jm; Wed, 03 Oct 2007 19:34:55 +0000 User-Agent: Icedove 1.5.0.12 (X11/20070731) In-Reply-To: X-Enigmail-Version: 0.94.2.0 X-Detected-Kernel: Linux 2.6 (newer, 1) 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:48091 Archived-At: kj wrote: > I regularly work on various systems, and it's a bit of a chore to > keep my .emacs files in synch. I've tried various approaches, none > entirely satisfactory. The two issues that give me the most > headaches are 1) to automate the process whereby changes to one > system's .emacs file gets reflected on the .emacs files on other > systems; and 2) to manage those modifications that are applicable > to only one or a subset of the systems. > > I'd be interested to read how others solve this problem. > Well, I would use one .emacs on all systems, but include some COND stuff to let the .emacs decide which parts are appropriate for the current system. And of course all my important .emacs, .emacs.d/ and other settings are stored in a mercurial repository. On a machine I haven't used for a while, hg pull -u gets all the latest files before I start work. If I make some changes to the local .emacs, hg commit hg push makes the changes available to all my other machines. SCM this easy has all sorts of uses :) Andrew Walrond