emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How can i share a single org-default-notes-file between multiple instances of emacs?
@ 2010-12-16 17:50 Eric Holbrook
  2010-12-16 18:08 ` Erik Iverson
  2010-12-16 19:16 ` Richard Lawrence
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Holbrook @ 2010-12-16 17:50 UTC (permalink / raw)
  To: emacs-orgmode

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.

Has anybody already solved this problem?

tia,
Eric

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How can i share a single org-default-notes-file between multiple instances of emacs?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Erik Iverson @ 2010-12-16 18:08 UTC (permalink / raw)
  To: Eric Holbrook; +Cc: emacs-orgmode

Note a direct answer, but I would just open up all the
buffers you use, and then either save window configurations
in registers to recall them when you switch contexts, or use
a package like Elscreen:

http://www.emacswiki.org/emacs/EmacsLispScreen

Eric Holbrook wrote:
> 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.
> 
> Has anybody already solved this problem?
> 
> tia,
> Eric
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How can i share a single org-default-notes-file between multiple instances of emacs?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Lawrence @ 2010-12-16 19:16 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-16 19:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).