alphapapa / org-super-agenda

Supercharge your Org daily/weekly agenda by grouping items

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to enable org-super-agenda *just* for `org-agenda-list`?

pedrormjunior opened this issue · comments

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.?

You could write a function to bind org-super-agenda-groups around a call to org-agenda-list.

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.