I would like to start an org-mode agenda with a custom tag search (rather than starting the agenda and then doing the search).
The overall goal is to make a work and a personal agenda. I can make the custom search commands easily enough:
(setq org-agenda-custom-commands '(("p" tags "-work") ("w" tags "+work")))
Normally I get to an agenda with a function like:
(defun just-agenda() (org-agenda-list) (delete-other-windows))
Is there a way to pass a custom search to the agenda when I call
org-agenda-list? I've seen a bunch of things that seem close in the docs but it feels like I'm missing something for how to do it.