alphapapa / org-super-agenda

Supercharge your Org daily/weekly agenda by grouping items
GNU General Public License v3.0
1.38k stars 108 forks source link

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

Open pedrormjunior opened 3 years ago

pedrormjunior commented 3 years ago

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

alphapapa commented 3 years ago

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

renan-bg commented 2 years ago

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.