From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: How can i share a single org-default-notes-file between multiple instances of emacs? Date: Thu, 16 Dec 2010 11:16:17 -0800 Message-ID: <87mxo5edfi.fsf@berkeley.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=36538 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTJGc-0001My-I1 for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 14:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTJGb-0004rN-78 for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 14:13:30 -0500 Received: from lo.gmane.org ([80.91.229.12]:40403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTJGa-0004rI-Vt for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 14:13:29 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PTJGY-0004hR-G2 for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 20:13:26 +0100 Received: from c-67-164-33-170.hsd1.ca.comcast.net ([67.164.33.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Dec 2010 20:13:26 +0100 Received: from richard.lawrence by c-67-164-33-170.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Dec 2010 20:13:26 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Holbrook writes: > At work i typically need to have at least 2 emacs running: 1 for the > project i'm working on at the moment; 1 for notes, email, ~/.bashrc, > ~/.alias, etc. > > I often have more than 1 project going at a time, so i end up with 3 > or 4 emacs running, sometimes more. > > I'd like to be able to do 'org-capture from any emacs, and have them > all dump into the same org-default-notes-file, which i have creatively > named notes.org. > > How can i do this? I thought of possibly setting a defadvice tied to > notes.org that tells all running emacs to unceremoniously revert that > buffer before doing anything else to it, and to save it when done with > it. I really don't know if this would help you out in your particular scenario, but have you thought about using the Emacs server[1]? If, for example, you start the server from within your "home" Emacs, but then visit project files from the command line using emacsclient, those emacsclient instances will see your notes buffer in its current state, even if it's unsaved, and changes you make there will be visible in your home Emacs. I think the server requires Emacs 23, so if you have that at work, it might be worth looking into. Richard [1] http://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html