From: Nick Dokos <nicholas.dokos@hp.com>
To: andrea crotti <andrea.crotti.0@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: auto export via git hook
Date: Thu, 03 Sep 2009 10:04:56 -0400 [thread overview]
Message-ID: <29003.1251986696@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from andrea crotti <andrea.crotti.0@gmail.com> of "Thu, 03 Sep 2009 11:26:48 +0200." <m2bplsgyzr.fsf@gmail.com>
andrea crotti <andrea.crotti.0@gmail.com> wrote:
>
> 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?
>
See the following thread in the mail list archive:
http://thread.gmane.org/gmane.emacs.orgmode/17059
Basically, --batch implies -q, so you have to do any initialization
(including setting the load-path) as part of the invocation.
HTH,
Nick
next prev parent reply other threads:[~2009-09-03 14:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-03 9:26 auto export via git hook andrea crotti
2009-09-03 14:04 ` Nick Dokos [this message]
2009-09-04 11:28 ` andrea crotti
2009-09-04 11:53 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29003.1251986696@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=andrea.crotti.0@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).