Skip to main content ramblings of a lost one

Orgmode Syntax and the Agenda

Essentially i decided (for whatever whimsical reason!) to move from the emacs diary to keeping everything in a specific org file. So previously my diary simply contained lines such as;

elisp code snippet start

%%(diary-anniversary 10 03 2017) marvin went paranoid - %d yrs old
%%(diary-anniversary 10 13 2017) supply switch over date - %d yrs ago
%%(diary-cyclic 14 1 04 2019) Black bin
%%(diary-cyclic 14 1 11 2019) Blue bin

elisp code snippet end

really simple and it worked, ok the date system takes some remembering as its format is x m d y where

Description
x number of re-occurrences if a cyclic event
m month
d day
y year

easy enough but backwards for the UK who are always d.m.y or at worst y.m.d. So after much searching and testing i managed to get an org file working with anniversaries and also a working %d element so an entry resembles;

elisp code snippet start

 * Anniversaries
%%(org-anniversary 1969 2 14) Arthur Dent - %d yrs old

elisp code snippet end

here you can see the date is easy its in y.m.d format and the %d reports correctly in the agenda, however for cyclic events it took me far longer to understand how to get them into the org file, you still need to use the diary-cyclic format and this sits under its own heading so i have an entry which looks like

elisp code snippet start

 * Blue bin collection
<%%(diary-cyclic 26 1 4 2019)>

elisp code snippet end

Now in my emacs dot file i have

elisp code snippet start

'(org-agenda-diary-file "//path/to/myfile/my_diary.org")

elisp code snippet end

Running the normal agenda commands now reads and show both the anniversaries and cyclic events correctly.