From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea crotti Subject: auto export via git hook Date: Thu, 03 Sep 2009 11:26:48 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mj8im-0007lo-S4 for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 05:35:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mj8ii-0007iX-1v for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 05:35:12 -0400 Received: from [199.232.76.173] (port=35160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mj8ih-0007iN-Pu for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 05:35:07 -0400 Received: from mx20.gnu.org ([199.232.41.8]:21679) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mj8ih-0004Jr-Ac for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 05:35:07 -0400 Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mj8ig-0000Bv-NF for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 05:35:06 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mj8ic-0003xP-Rt for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 11:35:03 +0200 Received: from host-78-14-255-242.cust-adsl.tiscali.it ([78.14.255.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Sep 2009 11:35:02 +0200 Received: from andrea.crotti.0 by host-78-14-255-242.cust-adsl.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Sep 2009 11:35:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I want to automatically export to html or something else in my pre- commit hook with git, I tried many things but I always get the same error mbpro:rt-simulate andrea$ cat .git/hooks/pre-commit.bak emacs --batch --load=$HOME/.emacs.d/org-mode/org.el --eval "(setq org- export-headline-levels 2)" --visit=README.org --funcall org-export-as- html-batch mbpro:rt-simulate andrea$ sh .git/hooks/pre-commit.bak Cannot open load file: org-macs org-macs is a library which is situated ~/.emacs.d/org-mode which should be automatically in the load path (not using --quiet), so what could be the problem? Thanks again