Skip to content

Instantly share code, notes, and snippets.

@narendraj9
Created March 10, 2016 19:14
Show Gist options
  • Save narendraj9/738861060f3de2db4dff to your computer and use it in GitHub Desktop.
Save narendraj9/738861060f3de2db4dff to your computer and use it in GitHub Desktop.
(defun org-late-todo (n)
"Switch todo assuming an old date [n days ago]"
(interactive "nDays: ")
(let* ((delta-time (days-to-time n))
(now (time-subtract (current-time)
delta-time)))
(letf ((symbol-function 'current-time) (lambda ()
now))
(org-agenda-todo))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment