How can I show the Org-mode agenda on Emacs start-up?

后端 未结 6 2181
失恋的感觉
失恋的感觉 2020-12-13 19:40

I would like the Org-mode agenda to automatically show what I have to do today when I open Emacs. The org-agenda command is interactive, so it doesn\'t seem to work well for

6条回答
  •  Happy的楠姐
    2020-12-13 20:01

    It is not exactly at startup, but I keep Emacs running so I need a different approach

    (require 'midnight)
    (midnight-delay-set 'midnight-delay "7:30am")
    (add-hook 'midnight-hook 'org-agenda-list)
    

    Credits to https://stackoverflow.com/a/14947354/217408

提交回复
热议问题