summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-05-03 14:57:25 +0100
committerYann Herklotz <git@yannherklotz.com>2022-05-03 14:57:25 +0100
commit92a070f23af5b9de2acea2cadcc9dac892a24467 (patch)
treee9a809104eeca1e9b55e760ede9ad7d9421d4f76
parent4048bf9e1be7ab759696a9541eec8f435359bcf3 (diff)
downloadorg-zettelkasten-92a070f23af5b9de2acea2cadcc9dac892a24467.tar.gz
org-zettelkasten-92a070f23af5b9de2acea2cadcc9dac892a24467.zip
Add export date to notes
-rw-r--r--org-zettelkasten.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/org-zettelkasten.el b/org-zettelkasten.el
index 6642c30..a5c364c 100644
--- a/org-zettelkasten.el
+++ b/org-zettelkasten.el
@@ -87,7 +87,8 @@ NEWHEADING: function used to create the heading and set the current
(let* ((current-id (org-entry-get nil "CUSTOM_ID"))
(next-id (funcall incr current-id)))
(funcall newheading)
- (org-set-property "CUSTOM_ID" next-id)))
+ (org-set-property "CUSTOM_ID" next-id)
+ (org-set-property "EXPORT_DATE" (format-time-string (org-time-stamp-format t t)))))
(defun org-zettelkasten-create-next ()
"Create a heading at the same level as the current one."