From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benny Simonsen Subject: Using macros in worg Date: Sun, 31 Oct 2010 17:37:22 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=54526 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCauU-0005fc-RQ for emacs-orgmode@gnu.org; Sun, 31 Oct 2010 12:37:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCauJ-0006cN-OP for emacs-orgmode@gnu.org; Sun, 31 Oct 2010 12:37:34 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:59500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCauJ-0006ba-MF for emacs-orgmode@gnu.org; Sun, 31 Oct 2010 12:37:23 -0400 Received: by gyh20 with SMTP id 20so3399694gyh.0 for ; Sun, 31 Oct 2010 09:37:22 -0700 (PDT) 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 Hi I would like to use org-mode + git to generate a web page. I would also like to use the "#+MACRO: " directives as defined in Worg /macrs.setupfile. I have downloaded cloned the git repository for Worg (git clone http://repo.or.cz/r/Worg.git) for an example. How is the setup to expand the macros? Are there any further setup that isn't included when I clone the git repository of Worg? I don't know how the web page is published - is the publishing done automatically when the code is submitted to the "central" git archive, or how is it done? - I have found out to publish something via the below elisp code, but the macros don't work and there might be smarter ways to do it automatically when submitted to a "central" git repository. /Benny (require 'org-publish) (setq org-publish-use-timestamps-flag nil); Always publish all - else files including other files (menu) aren't updated (setq org-export-html-style-include-default nil) (setq org-publish-project-alist '( ;; ... add all the components here (see below)... ("org-text" :base-directory "~/org/" :base-extension "org" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 ; Just the default for this project. ; :auto-preamble t :style "" ) ("org-static" :base-directory "~/org/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-attachment ) ("org" :components ("org-text" "org-static") :include "./menu.org" ) ))