all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Include on file open?
@ 2014-02-25 15:44 Peter Davis
  2014-02-26  6:07 ` Eric Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Davis @ 2014-02-25 15:44 UTC (permalink / raw
  To: emacs-orgmode


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

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

* Re: Include on file open?
  2014-02-25 15:44 Include on file open? Peter Davis
@ 2014-02-26  6:07 ` Eric Abrahamsen
  2014-02-26 13:18   ` Peter Davis
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Abrahamsen @ 2014-02-26  6:07 UTC (permalink / raw
  To: emacs-orgmode

Peter Davis <pfd@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...

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

* Re: Include on file open?
  2014-02-26  6:07 ` Eric Abrahamsen
@ 2014-02-26 13:18   ` Peter Davis
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Davis @ 2014-02-26 13:18 UTC (permalink / raw
  To: emacs-orgmode

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

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

end of thread, other threads:[~2014-02-26 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-25 15:44 Include on file open? Peter Davis
2014-02-26  6:07 ` Eric Abrahamsen
2014-02-26 13:18   ` Peter Davis

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.