4

The org-agenda-daily-view is fancily helpful as a review,
Additionally, I want to append a real-time now line as time elapsed.

enter image description here

This could be achieved by a work around solution, repeatedly kill and open the daily agenda buffer .

Is it possible to make it update automatically say every five minutes?

4

You can use timers for this. run-with-timer allows you to run a command every N seconds. run-with-idle-timer is similar but the command runs only after Emacs has been idle for a number of seconds. An argument to both functions will cause the timer to repeat instead of just firing once. I prefer idle timers so they don't interrupt my typing.

To regenerate the default agenda view (with command "a") every 5 minutes (300 seconds):

(run-with-idle-timer 300 t (lambda () (org-agenda nil "a")) )
  • thank you. org-agenda nil means invoke org-agenda but not call a? – Algebra Jan 19 at 3:12
  • If you don't give a second argument it will open the agenda menu to prompt you. – erikstokes Jan 19 at 16:20
  • Excellent!. Is there a way to do this without focusing the agenda buffer, though? – loki Aug 14 at 10:17
  • @loki Try wrapping the org-agenda call with save-window-excursion – erikstokes Aug 14 at 21:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.