From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Using Eric Schulte's starter kit with org mode from source Date: Wed, 24 Apr 2013 20:07:40 +0200 Message-ID: References: <87y5ca67ra.fsf@gmail.com> <878v49mgew.fsf@gmail.com> <87a9ookkxn.fsf@gmail.com> <87bo93keb2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV46e-0001ny-GC for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 14:07:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV46Z-0003o5-TJ for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 14:07:48 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:43685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV46Z-0003np-Mc for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 14:07:43 -0400 In-reply-to: <87bo93keb2.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode Eric Schulte writes: >> >> I've turned on the debugger, and there is something that I find a bit >> strange. Here are the last few lines. >> >> ,---- >> | load("/var/folders/68/fvntfrw92y50gkk_67rkhsfw0000gn/T/org-export-process77683E90" nil t) >> | command-line-1(("-l" "/Users/schmitta/.emacs.d/init.el" "-l" "/var/folders/68/fvntfrw92y50gkk_67rkhsfw0000gn/T/org-export-process77683E90")) >> | command-line() >> | normal-top-level() >> `---- >> >> Why is it loading the second file first? Shouldn't it load init.el >> first? Is it because of the "after-init-hook"? > > Yes, the starter kit waits to load on the after-init-hook so that the > Emacs package system will be fully loaded. That is why the other file > you load on the command line is loaded first. Then asynchronous export can't work, as it needs ox in that file. I've changed my init.el to loading org before the after-init-hook, and I go further but then I have an error about the "koma-letter" being unknown. It seems that to go this way I would need to load all of my export settings before the after-init-hook. So going the route of having a special init file for that seems even more relevant now. So I'll ask again: if I want to put some configuration in another .org file, it is better to #+include it in my main org configuration file, or to org-babel-load-file it? Thanks again for your help, Alan PS: I really don't understand how configuration options that are loaded in the after-init-hook can be used during asynchronous export. Is it working for you (with a more usual org install)?