Automatically generate an updated at timestamp when saving an org file
For this to work, the export option #+updated:\s
(yes, including the space)
must already be present in the file.
1: (add-hook 'org-mode-hook 2: (lambda () 3: (setq-local time-stamp-active t 4: time-stamp-start "#\\+updated: [ \t]*" 5: time-stamp-end "$" 6: time-stamp-format "%Y-%m-%d %H:%M %p") 7: (add-hook 'before-save-hook 'time-stamp nil 'local))