emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Lawrence <richard.lawrence@berkeley.edu>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87mxo5edfi.fsf@berkeley.edu> (raw)
In-Reply-To: AANLkTin5LWs=xpwGMzYB7AGxyGCvxt9LzYRpM-Gi_MDd@mail.gmail.com

Eric Holbrook <eric.holbrook@smsc.com> 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

      parent reply	other threads:[~2010-12-16 19:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16 17:50 How can i share a single org-default-notes-file between multiple instances of emacs? Eric Holbrook
2010-12-16 18:08 ` Erik Iverson
2010-12-16 19:16 ` Richard Lawrence [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87mxo5edfi.fsf@berkeley.edu \
    --to=richard.lawrence@berkeley.edu \
    --cc=emacs-orgmode@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).