emacs - org agenda notes
Org Agenda
https://orgmode.org/manual/Agenda-Commands.html
For additional help, look at the file org-agenda.el
If you don’t know where it is, you can navigate to it using describe-function
e.g. describe-function org-agenda-list
Use C-'
to cycle through the agenda files (org-cycle-agenda-files)
Org Agenda Scheduling tasks and setting deadlines to tasks
https://orgmode.org/manual/Agenda-Commands.html
https://orgmode.org/manual/Deadlines-and-Scheduling.html
C-c C-s
to schedule
When you want to schedule an item with Ctrl-c Ctrl-s, if you want to assign a time in addition to the date, enter the date manually and enter the time after the date. e.g. 2023-02-25 8PM and the time will also be inserted in the schedule in the org file.
C-c C-d
to set a deadline
If you really need to do the tasks, but there’s no point in seeing it in today’s task list because you can’t do it today anyway, use C-c C-s (org-agenda-schedule) to reschedule the task. If you’re only moving it a couple of days ahead, use S-right (org-agenda-later) to move it forward, and S-left (org-agenda-earlier) if you overshoot.
Org Agenda Views
Agenda Views - First, you need to add your Org file to your Org agenda by using the command C-c [. Then, type Meta-x org-agenda to be presented with options for different views.
Filtering/limiting agenda items https://orgmode.org/manual/Filtering_002flimiting-agenda-items.html
Different options for looking at org-agenda
- org-timeblock (I am using this right now. I set it up to load at emacs start-up and it works great.)
- Pros:
- gives a nice timeblock view
- Cons:
- Not showing the
procrastinated
items in the list. - Not showing
daily
items in the default view. If we want to see them, we have to use eitherorg-timeblock-list-mode
ororg-timeblock-toggle-timeblock-list)
(to see the GUI and the list side-by-side). - The defaults are not great
- Not showing the
- Pros:
- default view
- Pros:
- We can perform actions like marking tasks done, scheduling them to a different time/day right from this view without having to navigate anywhere else.
- verbose
- Cons:
- No GUI view
- Pros:
- calfw:open-org-calendar
- Pros:
- gives a calendar view of the agenda
- Cons:
- No hourly timeblock view
- Pros:
- org-timeblock-list-mode
- Pros:
- shows a nice view of the org-agenda.
- Cons:
- Same cons as that of org-timeblock
- Pros:
How to know what we did on a specific day?
- M-x org-agenda view.
- M-x org-agenda-go-to-date and pick a date.
- Press
[
for that day. - It will show all activities with inactive timestamps.
Show the Org-mode agenda on Emacs start-up
You can use after-init-hook
to run a piece of code after initialization has finished. To run (org-agenda-list)
after init, use:
(add-hook 'after-init-hook 'org-agenda-list)