diff options
author | David Maus <dmaus@ictsoc.de> | 2010-09-09 18:44:05 +0000 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-09-16 16:59:30 +0200 |
commit | d78eba7efbf96ff80cce9f138ec7c2b73cb17207 (patch) | |
tree | 037543bede5022bd484277fa5cc68d56a979bd23 | |
parent | ac8e3fb8d1fd8fffe784f6edd672d3c93f78664f (diff) | |
download | org-mode-d78eba7efbf96ff80cce9f138ec7c2b73cb17207.tar.gz |
Add macro to insert property values into exported text
Example:
{{{property(id)}}}
Will insert the ID property of current subtree if the Org buffer is
exported.
* lisp/org-exp.el (org-infile-export-plist): Define property macro
TINYCHANGE
-rw-r--r-- | lisp/org-exp.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-exp.el b/lisp/org-exp.el index b4f6ab9..1f6ebf2 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -770,6 +770,7 @@ modified) list.") ;; Add macro definitions (setq p (plist-put p :macro-date "(eval (format-time-string \"$1\"))")) (setq p (plist-put p :macro-time "(eval (format-time-string \"$1\"))")) + (setq p (plist-put p :macro-property "(eval (org-entry-get nil \"$1\" 'selective))")) (setq p (plist-put p :macro-modification-time (and (buffer-file-name) |