From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Emacs/Org-mode configs spread over multiple accounts/machines Date: Fri, 03 Feb 2012 11:30:26 -0700 Message-ID: <87fwersrb1.fsf@gmx.com> References: <2012-02-02T14-47-49@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtNzY-0001fK-HF for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 13:36:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtNzT-0000Ey-SC for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 13:36:12 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:36556) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RtNzT-0000EV-Jq for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 13:36:07 -0500 In-Reply-To: (Alan E. Davis's message of "Thu, 2 Feb 2012 07:18:58 -0800") 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: "Alan E. Davis" Cc: news1142@karl-voit.at, emacs-orgmode@gnu.org One more option in this space is the technique used in the emacs starter kit, in which specialized config files named after both the user and the machine hostname are loaded on startup. This allows sharing of config across users and machines. http://eschulte.me/emacs24-starter-kit/ https://github.com/eschulte/emacs24-starter-kit Best, "Alan E. Davis" writes: > By the way, all of these are called from .emacs.el . Another point, I > have elected not to byte-compile the loaded elisp files in > ~/WorkBench/Emacs , so they will load ok on multiple versions of emacs. > > On Thu, Feb 2, 2012 at 7:16 AM, Alan E. Davis wrote: > >> 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 >>> >>> >>> >> -- Eric Schulte http://cs.unm.edu/~eschulte/