Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
Upstream rewrote history a bit. Fast-forward merging not possible. See
[1] for context.

[1]: ymherklotz#9
  • Loading branch information
rockstorm101 committed Aug 21, 2022
2 parents edba7bc + 505fd41 commit 96fd1c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2022 Yann Herklotz <git@ymhg.org>

* unreleased:

(org): Add modified date which can be added on a before-save-hook.

2022-05-03 Yann Herklotz <git@ymhg.org>

* v0.5.0: Add date stamps to org-zettelkasten entries.
Expand Down
6 changes: 6 additions & 0 deletions org-zettelkasten.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 96fd1c8

Please # to comment.