diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-08-17 11:44:31 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-08-17 11:44:31 +0100 |
commit | 7278052cb451178a2f1ffc61569156ca0adcc34a (patch) | |
tree | 74a5d8dfb74bd197f7185818becd40c548f0356e /org-zettelkasten.el | |
parent | 9eb18ecd93895a9894970fa85b68257da647812d (diff) | |
download | org-zettelkasten-7278052cb451178a2f1ffc61569156ca0adcc34a.tar.gz org-zettelkasten-7278052cb451178a2f1ffc61569156ca0adcc34a.zip |
Add function to update modification time
Diffstat (limited to 'org-zettelkasten.el')
-rw-r--r-- | org-zettelkasten.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/org-zettelkasten.el b/org-zettelkasten.el index a5c364c..6b39342 100644 --- a/org-zettelkasten.el +++ b/org-zettelkasten.el @@ -113,6 +113,12 @@ NEWHEADING: function used to create the heading and set the current (org-zettelkasten-create-next) (org-zettelkasten-create-branch)))) +(defun org-zettelkasten-update-modified () + "Update the modified timestamp, which can be done on save." + (interactive) + (org-set-property "modified" (format-time-string + (org-time-stamp-format t t)))) + (defvar org-zettelkasten-mode-map (let ((map (make-sparse-keymap))) (define-key map "n" #'org-zettelkasten-create-dwim) |