Skip to content

Instantly share code, notes, and snippets.

@colonelpanic8
Created August 30, 2023 00:58
Show Gist options
  • Select an option

  • Save colonelpanic8/199218b60117105ef7b374a762df4be4 to your computer and use it in GitHub Desktop.

Select an option

Save colonelpanic8/199218b60117105ef7b374a762df4be4 to your computer and use it in GitHub Desktop.
(cl-defun imalison:org-at-time (&optional time &key (fn 'org-wild-notifier-check))
(interactive)
(setq time (or time (time-convert (encode-time (parse-time-string (org-read-date))) 'list)))
(flet
((current-time (&rest args) time))
(funcall fn)))
(imalison:org-at-time
nil
:fn (lambda ()
(-each
(->> (funcall (org-wild-notifier--retrieve-events))
(-map 'org-wild-notifier--check-event)
(-flatten)
(-uniq))
'org-wild-notifier--notify)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment