mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 19:32:53 +00:00
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
This commit is contained in:
parent
ac8e3fb8d1
commit
d78eba7efb
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue