all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: how to keep .emacs files in synch
Date: Thu, 04 Oct 2007 19:53:58 +1000	[thread overview]
Message-ID: <87abqz2ojt.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: fe0kbd$r37$1@reader1.panix.com

kj <socyl@987jk.com.invalid> 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.
>

I just use one emacs!

Actually, thats a bit of a lie. I use one emacs at work. All editing is
done through that emacs via tramp over an ssh connection. I run a separate
emacs at home. 

I do maintain only a single .emacs file, which is under version control.  I
have a SYSTEM_PROFILE environment variable, which is set to either home,
work, work-laptop, home-laptop (there is actually only one laptop, whihc I
may use at home or work). nearly all my emacs settings are constant, but I
do have some specific settings that depend on whether I'm at home, work or
on the laptop at home or work. For these profile specific sections, I just
put my bits of elisp inside an if, cond, unless etc test which looks at the
value of the envrioinment variable. Not very sophisticated, but it works
well and isn't so complicated as to break everytime something changes or
gets updated. 

The version control is a subversion repository which I can access from home
or work. When I make a change, I commit them to the repository. When I'm on
another system, I can update from the repository to get the latest
changes. 

Another approach I've used for environments where I don't have a dedicated
desktop or laptop is to NFS my home directory so that no matter what host I
log into directly, my home directory (and hence my .emacs) is there. Of
course, there are some risks and you need to keep in mind that NFS can be
slow and is not good for things like mail folders (probably ok for maildir
style, but not mbox). if the NFS export host goes down, then your pretty
much stuffed on all systems. 

Tim

-- 
tcross (at) rapttech dot com dot au

  parent reply	other threads:[~2007-10-04  9:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 17:43 how to keep .emacs files in synch kj
2007-10-03 18:51 ` Ekkehard Görlach
2007-10-03 19:16   ` Harald Hanche-Olsen
2007-10-03 19:30 ` Andrew Walrond
2007-10-04  9:24   ` Andreas Röhler
2007-10-04 16:25     ` Edward O'Connor
2007-10-04 18:26       ` Andreas Röhler
2007-10-04  7:03 ` Rainer Stengele
2007-10-05 16:57   ` kj
2007-10-04  8:31 ` William Xu
2007-10-04  9:53 ` Tim X [this message]
2007-10-04 11:34   ` weber
2007-10-04 12:14     ` Andrew Walrond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87abqz2ojt.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.