From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Include on file open? Date: Wed, 26 Feb 2014 14:07:22 +0800 Message-ID: <877g8ih0f9.fsf@ericabrahamsen.net> References: <20140225154452.GG15776@pdavismbp15.iscinternal.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIXh4-00075Z-Cu for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 01:10:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIXgz-0004FM-9d for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 01:10:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:41836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIXgz-0004EG-48 for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 01:10:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WIXgx-0003hH-Ir for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 07:10:03 +0100 Received: from 111.197.162.167 ([111.197.162.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Feb 2014 07:10:03 +0100 Received: from eric by 111.197.162.167 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Feb 2014 07:10:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Peter Davis 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...