From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: loading all agenda files at startup Date: Wed, 30 Apr 2014 16:18:44 +0800 Message-ID: <87fvkvdycb.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfPgH-0000dZ-Ht for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 04:16:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfPgA-0006Q5-2A for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 04:15:53 -0400 Received: from plane.gmane.org ([80.91.229.3]:59708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfPg9-0006Pv-SX for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 04:15:46 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WfPg5-0002Hk-TZ for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 10:15:41 +0200 Received: from 123.122.33.182 ([123.122.33.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Apr 2014 10:15:41 +0200 Received: from eric by 123.122.33.182 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Apr 2014 10:15:41 +0200 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 I've got a few top-level user commands, related to org, that load at startup. Specifically org-agenda and org-ido-switchb are bound to keys that are available after emacs starts up. Before Org loads properly, however, things like the agenda file list and the list of valid tags and TODO keywords are unavailable. That makes it hard to boot emacs and go directly into a call to `org-todo-list': the TODO keywords aren't loaded yet. I've looked into this before but couldn't find a single function that would "boot" my local data. `org-agenda-files' reads the file list, but it doesn't actually parse the files and do all the setup routines. Is there a single-function entry point that I could put in my init files, that would get me where I want to be? ie, in a state as though `org-agenda' had already been called, though it hasn't yet? Thanks, Eric