Skip to content

Instantly share code, notes, and snippets.

@kriyative
Created July 6, 2011 18:14
Show Gist options
  • Save kriyative/1067922 to your computer and use it in GitHub Desktop.
Save kriyative/1067922 to your computer and use it in GitHub Desktop.
Displaying a daily Org-mode agenda reminder in Emacs 1
(defvar daily-agenda-timer (parse-relative-time "9:00 am"))
;; (decode-time daily-agenda-timer)
(defun show-daily-agenda ()
(unless (time-less-p (current-time) daily-agenda-timer)
(setq daily-agenda-timer (time-add daily-agenda-timer
(seconds-to-time 86400)))
(org-agenda-list)))
(add-hook 'display-time-hook 'show-daily-agenda)
(display-time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment