Re: [O] Include on file open?

2014-02-26 Thread Peter Davis
On Wed, Feb 26, 2014 at 02:07:22PM +0800, Eric Abrahamsen wrote:
 
 I think org-toc in the contrib/lisp directory is meant to do just this,
 automatically. I haven't tried it, though...
 


Ah! Excellent!

Thanks very much!

-pd


-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



[O] Include on file open?

2014-02-25 Thread Peter Davis

I'd like to put a kind of menu bar at the top of most of my .org pages, so I 
can quickly jump around the most commonly edited files. I can do something like:

| [[file:first.org][first]] | [[file:second.org][second]] | ...

and simply include that in all my files. However, if I change the menu, I have 
to go back and update all those files. A better approach would be to include an 
up-to-date menu file
when each org file is opened, and maybe even reload to update the menu.  
However, the #+INCLUDE: option only works at export time.

Is there a way to automatically include an external file when I open/reload a 
.org file? Or is there a better way to create a menu or frequently visited 
files?

Thanks!
-pd

-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



Re: [O] Include on file open?

2014-02-25 Thread Eric Abrahamsen
Peter Davis p...@pfdstudio.com writes:

 I'd like to put a kind of menu bar at the top of most of my .org
 pages, so I can quickly jump around the most commonly edited files. I
 can do something like:

 | [[file:first.org][first]] | [[file:second.org][second]] | ...

 and simply include that in all my files. However, if I change the
 menu, I have to go back and update all those files. A better approach
 would be to include an up-to-date menu file
 when each org file is opened, and maybe even reload to update the
 menu. However, the #+INCLUDE: option only works at export time.

 Is there a way to automatically include an external file when I
 open/reload a .org file? Or is there a better way to create a menu or
 frequently visited files?

 Thanks!
 -pd

I think org-toc in the contrib/lisp directory is meant to do just this,
automatically. I haven't tried it, though...