I would like to make a quick access agenda for today and just for the current buffer.
So my approach looks like this, but it does not work.
(setq org-agenda-custom-commands
'(
("o" ;; Key
"todays agenda for current buffer" ;; Description
agenda ;; Type agenda
((org-agenda-files `(,(buffer-file-name)))
(org-agenda-span 1)) ;; Options
)))
I found some inspiration here but it does not really work here atm.
I know you can narrow the agenda to current buffer with < but if it is possible I would prefer to use a custom agenda.
An explanation why this approach does not work would be appreciated.