alphapapa / org-super-agenda

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

Config and screenshot example #98

Open durableOne opened 5 years ago

durableOne commented 5 years ago

Thank you for making this package. I find it really useful. I thought I would contribute my config and a screenshot in case it can benefit others.

Here's my config:

 (setq org-super-agenda-groups
         '(
          (:name "Deadlines"
                  :deadline today
                  :order 0)
          (:name "Upcoming Deadlines"
                  :deadline future
                  :order 10)
          (:name "Habits"
                  :habit t
                  :order 7)
           (:name "Routines"
                  :category "Routine"
                  :order 6)
           (:name "GTD Upkeep"
                  :category "GTD"
                  :order 8)
           (:name "Events"
                  :category "Event"
                  :category "Social"
                  :order 1)
           (:name "Emails and online tasks"
                  :tag "@email"
                  :order 1)
           (:name "Work tasks"
                  :time-grid t
                  :and (:tag "@work" :todo t :scheduled today)
                  :order 2)
           (:name "Deferred work tasks"
                  :and (:tag "@work" :not (:todo ("CNCL" "DONE")) :scheduled past)
                  :order 3)
           (:name "Information about today"
                  :category "Sunrise"
                  :category "Day info"
                  :order 9)
           (:name "Personal tasks"
                  :scheduled today 
                  :order 4)
            (:name "Deferred personal tasks"
                  :and (:not (:todo ("CNCL" "DONE")) :scheduled past)
                  :order 5))))

I'm probably not doing this in the most efficient way (this is my first attempt) but this setup works quite well for me.

Screenshot: screenshot

alphapapa commented 3 years ago

Thanks for your patience and sending this in. I'll add this to the examples before the next release.

Thaodan commented 1 month ago

How did you group the sunrise and dayinfo, how did you assign them a category, do you safe them in your diary or one of your agenda files?

durableOne commented 1 month ago

How did you group the sunrise and dayinfo, how did you assign them a category, do you safe them in your diary or one of your agenda files?

In any of your agenda files:

#+CATEGORY: Day Info
&%%(diary-day-of-year)

#+CATEGORY: Sunrise
&%%(diary-sunrise-sunset)

Note that you need to have set the calendar-latitude and calendar-longitude, calendar-location-name and perhaps calendar-timezone for your sunrise/sunset info to be accurate.

alphapapa commented 1 month ago

@durableOne Thanks, I didn't even know that was possible in the agenda. Very cool.

Thaodan commented 1 month ago

Thanks than I wasn't so far away. What does the the & in front of the diary string do? Instead of setting the calendar variables manually you can also install the geo package to do it for you.

durableOne commented 1 month ago

What does the the & in front of the diary string do?

Nothing apparently. It can be removed with no adverse effects. I cargo-culted it when posting my answer yesterday. I actually had to re-Google how to add this info to my agenda as my configuration has changed a lot over the past 5 years and I stopped adding this stuff to my agenda a while back.

Good to know about the geo package, thanks!