Is there a way to enable org-super-agenda *just* for `org-agenda-list`?
pedrormjunior opened this issue · comments
Pedro Ribeiro Mendes Júnior commented
It's mentioned in the Introduction of the README:
The primary use of this package is for the daily/weekly agenda, made by the org-agenda-list command, but it also works for other agenda views, like org-tags-view, org-todo-list, org-search-view, etc.
Is there a straightforward way of avoiding enabling it for org-tags-view
, org-todo-list
, org-search-view
, etc.?
Adam Porter commented
You could write a function to bind org-super-agenda-groups
around a call to org-agenda-list
.
renan-bg commented
As an example of what @alphapapa suggested, you could say:
(defun my-org-agenda-list (orig-fun &rest args)
(let ((org-super-agenda-groups '((:name "My Group" :tag "some_tag"))))
(apply orig-fun args)))
(advice-add 'org-agenda-list :around #'my-org-agenda-list)
Check out this manual page for more details.