Re: [PATCH] org-agenda: Allow org-agenda-overriding-header to be a function

2021-09-27 Thread Bastien
Hi Christopher, Christopher League writes: > * org-agenda.el (org-agenda--insert-overriding-header): Allow > `org-agenda-overriding-header' to be a function in addition to a > string or nil. When the custom agenda is created or updated, call that > function and insert the string it returns as th

[PATCH] org-agenda: Allow org-agenda-overriding-header to be a function

2021-08-12 Thread Christopher League
* org-agenda.el (org-agenda--insert-overriding-header): Allow `org-agenda-overriding-header' to be a function in addition to a string or nil. When the custom agenda is created or updated, call that function and insert the string it returns as the agenda header. This allows custom commands to produ

[PATCH] org-agenda: Allow org-agenda-overriding-header to be a function

2021-08-12 Thread Christopher League
I thought this would be a nice extension to an existing customization option for org-agenda. Commit message has an example and rationale. Comments and amendments welcome, of course. I signed FSF copyright assignment previously. Thanks, Chris