I have
(add-hook 'after-init-hook 'org-agenda)
in my init file. This displays the agenda dispatcher. How can I
This should work:
(add-hook 'after-init-hook (lambda () (org-agenda nil "w")))
@robust: you can get more information through the help page for using org-agenda
non-interactively (C-h f org-agenda
); note that the original (interactive)
in the lambda
was unneeded, so I edited it out. The first optional argument is the prefix argument so pass it a placeholder, but the second (ORG-KEYS
) is the one you want to set to your key of interest ("w"
). You wrap the call to org-agenda
in a lambda
, which is self-quoting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With