Skip to content

Instantly share code, notes, and snippets.

@rlb3
Created February 17, 2012 18:43
Show Gist options
  • Select an option

  • Save rlb3/1854784 to your computer and use it in GitHub Desktop.

Select an option

Save rlb3/1854784 to your computer and use it in GitHub Desktop.
Org-mode Agendas
Before we talk about Agendas in org-mode I need to add two more
things that I forgot to add last time. The first are a few basic
global key bindings you should have for org-mode in your .emacs
file.
1: (global-set-key "\C-cl" 'org-store-link)
2: (global-set-key "\C-ca" 'org-agenda)
3: (global-set-key "\C-cb" 'org-iswitchb)
- 1 org-store-link will allow you to setup links anywhere in emacs.
- 2 org-agenda will bring up the Agenda dispatcher.
- 3 org-iswitchb Allows you to switch between org-mode
buffers.
The second thing are properties. Properties are key value pairs
that can be add to any heading. To create one use "C-c C-x p". It
looks like this:
1: :PROPERTIES:
2: :Case: 34243
3: :Effort: 4h
4: :END:
To add more properties, use the same keyboard command as before as
long as you are under the same heading it will let you add a new
key value pair. The main difference between tags and properties
is that properties don't show up when you export the file to a
different format. There usefulness will be more obvious in the
agenda.
When you bring up the Agenda and choose the option 'a' for The
weekly agenda, you see something like this:
1: Week-agenda (W07):
2: Monday 13 February 2012 W07
3: Tuesday 14 February 2012
4: Wednesday 15 February 2012
5: org-tutorial:Scheduled: STARTED Agendas :yammer:emacs_users:
6: org-tutorial:Scheduled: TODO Plain Lists :yammer:emacs_users:
7: org-tutorial:Scheduled: TODO Markup :yammer:emacs_users:
8: org-tutorial:Scheduled: TODO Tables :yammer:emacs_users:
9: org-tutorial:Scheduled: TODO Spreadsheet :yammer:emacs_users:
10: org-tutorial:Scheduled: TODO Babel :yammer:emacs_users:
11: Thursday 16 February 2012
12: Friday 17 February 2012
13: org-tutorial:Sched. 3x: STARTED Agendas :yammer:emacs_users:
14: org-tutorial:Sched. 3x: TODO Plain Lists :yammer:emacs_users:
15: org-tutorial:Sched. 3x: TODO Markup :yammer:emacs_users:
16: org-tutorial:Sched. 3x: TODO Tables :yammer:emacs_users:
17: org-tutorial:Sched. 3x: TODO Spreadsheet :yammer:emacs_users:
18: org-tutorial:Sched. 3x: TODO Babel :yammer:emacs_users:
19: Saturday 18 February 2012
20: Sunday 19 February 2012
As you can see, it shows you the days of the week, what file the
item came from, when something was scheduled, what's scheduled for
the day and the tags. You move up and down with the keys 'p' and
'n'. Quit with 'q'. And if you move to a line hit 'return' you
will be taken to that file and to the line of the item.
I use the weekly agenda the most but after that I use the 'm'
option that allows you to search for tags and properties.
The other options are also useful. They can be found here
[http://orgmode.org/manual/Agenda-dispatcher.html#Agenda-dispatcher].
Well that's the basics of org-agendas. Next time the topic will
be plain lists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment