emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: andrea crotti <andrea.crotti.0@gmail.com>
To: emacs-orgmode@gnu.org
Subject: auto export via git hook
Date: Thu, 03 Sep 2009 11:26:48 +0200	[thread overview]
Message-ID: <m2bplsgyzr.fsf@gmail.com> (raw)


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

             reply	other threads:[~2009-09-03  9:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-03  9:26 andrea crotti [this message]
2009-09-03 14:04 ` auto export via git hook Nick Dokos
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=m2bplsgyzr.fsf@gmail.com \
    --to=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).