From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Ekkehard_G=F6rlach?= Newsgroups: gmane.emacs.help Subject: Re: how to keep .emacs files in synch Date: Wed, 03 Oct 2007 20:51:11 +0200 Organization: Bluewin AG Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191440470 18816 80.91.229.12 (3 Oct 2007 19:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2007 19:41:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 03 21:41:07 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 1IdA5a-0000Wi-Tj for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Oct 2007 21:40:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdA5W-0000d6-EM for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Oct 2007 15:40:54 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:KVMUa2WHoxjMMBXwFPZY8D19mBA= Original-NNTP-Posting-Host: 83.77.213.156 X-Original-NNTP-Posting-Host: 83.77.213.156 Original-X-Trace: news.bluewin.ch 1191437472 83.77.213.156 (3 Oct 2007 20:51:12 +0200) Original-Lines: 46 Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.aset.psu.edu!news.glorb.com!wns11feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:152584 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:48092 Archived-At: kj writes: > 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. > As for 2) I split my .emacs in a common .emacs and a .emacs-local. The first thing in .emacs is to load .emacs-local. (load "~/.emacs-local") This in turn defines - among other things like the default printer - the directory where I put my extensions on that system, e.g. on a w32 box (setq local-site-path "e:/prog/elisp" local-prog-path "e:/prog") [ ... more local stuff ...] Upon return to .emacs the local paths are added to my load-path (setq load-path (cons local-site-path load-path)) Larger extensions I am then able to load on all machines in a universl manner from whithin .emacs, e.g. (add-to-list 'load-path (expand-file-name (concat local-site-path "/ess/lisp"))) Not really a big thing, but it works for me. Off course I assume that underneath the local-site-path all systems look the same for what is loaded in .emacs. For a while I synched .emacs via CVS. But after a while it was pretty stable, so I don't do this any more. Just my two cents, Ekkehard