From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: loading all agenda files at startup Date: Wed, 30 Apr 2014 17:23:33 +0900 Message-ID: <87fvkvfcoq.fsf@tanger.home> References: <87fvkvdycb.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfPt8-0007KB-Sa for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 04:29:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfPt2-0002jq-Rb for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 04:29:10 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:57335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfPt2-0002jY-JW for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 04:29:04 -0400 Received: by mail-pa0-f52.google.com with SMTP id kx10so1627323pab.25 for ; Wed, 30 Apr 2014 01:29:03 -0700 (PDT) In-Reply-To: <87fvkvdycb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 30 Apr 2014 16:18:44 +0800") 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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric Abrahamsen writes: Hi Eric, > 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? I call `org-agenda-list' in my `after-init-hook' but it is not "silent", that is, it displays the agenda list. Best, =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTYLMMAAoJEBNzVHcrZRiUKusQAIOYKA9LlOjJwL8cZFAWO6T2 VmamZKeTQbTN6Wl4jpT71DkQiEAPQFN3opEV+/M2kfiy93Dy66WeqdN0yqyCBD9T Fb5/xnm0FzWj5adsz0KjZrE5YkcAYSRa9+CLtignIZRXEKaWwc29ya4K09RQkNLY JHRL2/KTX2IrJp3pxDvkunKbhI5RinwutBJPDtW82oTau97oOMxAcYkUYGXwp7Xg HpzQNXOvOdMOf+WwF4LeYHFkyHbioYjwiBwbi5J/tJrAZtulqS1ZJbdDAiAXAQyU n+fQgj78vXm6sC06kUqVmKRTcKhQ4CJVWb7OJ0ewcZ5+5jaTJxlcyHhIagdLCQxL v21Mg5oNYaQJHqLB5OmGAlDxXxS1oi/dBMpSupbYp2MarbPmMMqNhr2AknQ0D2FZ VVMAGjvZqEPt8in7C0v80E7ISfAQ2IznU5R8r4SEWCE01z96Saw8WmN+t4lijBYp TOidzQQ3mJ5MDKzIyX726NM45jNm0IA7IFh37Hp7vyugvilPzf57jwSIEPSgzW0R nMqFP0sRTC+9ftLZlG2EpY9QijXq+/GPA3VkNjgtLSuBMb4YkbvNrhwSeOxFee4p 8St/Mwri+8ddph8+hZxM97DOi3HYdpfqQHEXH6FmnvIqjrzKQ4eIXtl9LiJO5ZhN BpzMIBY59xlXDHkzA86a =nrLv -----END PGP SIGNATURE----- --=-=-=--