I have been able to initialize org agenda on Emacs startup with:
(add-hook 'emacs-startup-hook 'org-agenda-list)
However, now I want to initialize org agenda directly with log mode, and I haven't been able to figure out how to do it.
Attempting to write
(add-hook 'emacs-startup-hook 'org-agenda-start-with-log-mode '(closed clock))
resulted in an Emacs error about the symbol
org-agenda-start-with-log-mode being void. I guess it's because
org-mode related functions haven't been completely loaded yet on Emacs startup.
However, attempts to run it after org has been loaded have also failed:
(eval-after-load 'org-agenda '(org-agenda-start-with-log-mode '(closed clock)))
Is there a way to achieve what I want?