I've been writing my own custom org-agenda views lately, and I've had good luck playing around with
org-agenda-prefix-format for customizing the format for my different tasks. I occasionally would like to include extra information, typically via my own added property tags. However, while I've been adding this extra information /before/ the task of interest, I'd prefer to include it /after/ the task.
For example, I currently display calendar events as:
Serenity: 18:00-19:00 Location: Jaynestown Scheduled: TODO Help the Mudders
However, I'd like for this information to appear in the following order:
Serenity: 18:00-19:00 Scheduled: TODO Help the Mudders Location: Jaynestown
Notice that this cannot be done with
org-agenda-prefix-format since some of the added text occurs after
TODO Help the Mudders.
Edit: Here's the code I used to generate the above:
(defun gs/org-agenda-add-location-string () "Gets the value of the LOCATION property" (let ((loc (org-entry-get (point) "LOCATION"))) (if (> (length loc) 0) (concat "\n" (make-string 15 ?\s) "Location: " loc "\n" (make-string 15 ?\s)) "")))
And then use this custom function as follows (within
(org-agenda-prefix-format '((agenda . " %-12:c%?-12t %(gs/org-agenda-add-location-string)% s") ...