From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan E. Davis" Subject: Re: Emacs/Org-mode configs spread over multiple accounts/machines (was: Variable settings in .emacs VS cross device portability.) Date: Thu, 2 Feb 2012 07:16:15 -0800 Message-ID: References: <2012-02-02T14-47-49@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00504502d1b0970b2b04b7fcae1f Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsyOx-0001PC-Dv for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 10:16:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsyOq-0001e8-SB for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 10:16:43 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:57238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsyOq-0001e0-Ip for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 10:16:36 -0500 Received: by wera13 with SMTP id a13so2483336wer.0 for ; Thu, 02 Feb 2012 07:16:35 -0800 (PST) In-Reply-To: <2012-02-02T14-47-49@devnull.Karl-Voit.at> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: news1142@karl-voit.at Cc: emacs-orgmode@gnu.org --00504502d1b0970b2b04b7fcae1f Content-Type: text/plain; charset=ISO-8859-1 My setup, while far from ideal, is working pretty well. It does require a modicum of manual oversight. I have a directory, ~/WorkBench , in which all of my going work is located. Dozens of subdirectories including every project I have worked on or am working on, with PDFs, etc. In ~/WorkBench/org are some setup files: org-init-settings.el org-local-init-settings.el (included in .gitignore) emacs-common-settings.el (all machines) emacs-local-settings.el (local machine --- included in .gitignore) emacs-frame-setup-magic.el The directory ~/WorkBench and all subdirectories are under git supervision, so long as it stays smaller than about 3 GB. In that case, it can be carried around on an 8GB flash drive, and cloned on other machines, though I've had to delete and reclone, once the repo got too large. It could be cloned to Dropbox if I wanted to spend money on it, and trusted it. I really like this setup, the use of git. However, I am using git at the most trivial level, and perhaps there are more direct ways to do this. The next step is to encrypt the whole thing. I have encrypted a couple of sensitive files using bcrypt. Alan On Thu, Feb 2, 2012 at 5:59 AM, Karl Voit wrote: > * Yu wrote: > > Hello! > > > > I was wondering if there is a possibility to make org-files fully > > portable in behaviour (especially when exporting) between different > > emacs installations. > > The Tread has turned into BIND and local variables only. I wanted > to add my current solution which uses a different approach. > > My ~/.emacs is a symlink to ~/hosts/${HOSTNAME}/emacs where > host-specific or platform-specific configuration is stored. The > directory ~/hosts is synchronized[1] on all of my machines and > accounts. > > In ~/hosts/all/emacs.d/* I have got myorgmode.el, mycommon.el, > myauctex.el, myedit-server.el, mypython.el, and so forth. > > As you can imagine, the ~/hosts/${HOSTNAME}/emacs contains a load > command for mycommon.el which refers to all the other el files. > > Therefore mycommon.el and all the others are identical on all my > machines whereas ~/.emacs contains (only few) platform-specific > things. > > Maybe this is a possible attempt to overcome your problems when > using Org-mode on different machines. > > 1. I am currently using Unison File Synchronizer[2] in combination > with crond/LaunchCtl but git or something like dvcs-autosync[3] > or even Dropbox will work too. > 2. http://www.cis.upenn.edu/~bcpierce/unison/ > 3. http://www.mayrhofer.eu.org/dvcs-autosync > -- > Karl Voit > > > --00504502d1b0970b2b04b7fcae1f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable My setup, while far from ideal, is working pretty well.=A0 It does require = a modicum of manual oversight.

I have a directory, ~/WorkBench , in = which all of my going work is located.=A0 Dozens of subdirectories includin= g every project I have worked on or am working on, with PDFs, etc.=A0 In ~/= WorkBench/org are some setup files:

=A0=A0 org-init-settings.el
=A0=A0 org-local-init-settings.el=A0=A0= =A0=A0=A0=A0=A0=A0 (included in .gitignore)
=A0=A0 emacs-common-settings= .el=A0=A0 (all machines)
=A0=A0 emacs-local-settings.el=A0=A0=A0=A0=A0= =A0=A0=A0 (local machine --- included in .gitignore)
=A0=A0 emacs-frame-setup-magic.el=A0=A0

The directory ~/WorkBench a= nd all subdirectories are under git supervision, so long as it stays smalle= r than about 3 GB.=A0 In that case, it can be carried around on an 8GB flas= h drive, and cloned on other machines, though I've had to delete and re= clone, once the repo got too large.=A0=A0 It could be cloned to Dropbox if = I wanted to spend money on it, and trusted it.

I really like this setup, the use of git.=A0 However, I am using git at= the most trivial level, and perhaps there are more direct ways to do this.=

The next step is to encrypt the whole thing.=A0 I have encrypted a = couple of sensitive files using bcrypt.=A0=A0

Alan



On Thu, Feb 2, 2012 at 5= :59 AM, Karl Voit <devnull@karl-voit.at> wrote:
* Yu <yu_icq@gmx.at> wrote:
> Hello!
>
> I was wondering if there is a possibility to make org-files fully
> portable in behaviour (especially when exporting) between different > emacs installations.

The Tread has turned into BIND and local variables only. =A0I wanted
to add my current solution which uses a different approach.

My ~/.emacs is a symlink to ~/hosts/${HOSTNAME}/emacs where
host-specific or platform-specific configuration is stored. The
directory ~/hosts is synchronized[1] on all of my machines and
accounts.

In ~/hosts/all/emacs.d/* I have got myorgmode.el, mycommon.el,
myauctex.el, myedit-server.el, mypython.el, and so forth.

As you can imagine, the ~/hosts/${HOSTNAME}/emacs contains a load
command for mycommon.el which refers to all the other el files.

Therefore mycommon.el and all the others are identical on all my
machines whereas ~/.emacs contains (only few) platform-specific
things.

Maybe this is a possible attempt to overcome your problems when
using Org-mode on different machines.

=A01. I am currently using Unison File Synchronizer[2] in combination
=A0 =A0 with crond/LaunchCtl but git or something like dvcs-autosync[3] =A0 =A0 or even Dropbox will work too.
=A02. http://www.cis.upenn.edu/~bcpierce/unison/
=A03. http://www.mayrhofer.eu.org/dvcs-autosync
--
Karl Voit



--00504502d1b0970b2b04b7fcae1f--