Created
August 22, 2019 03:07
-
-
Save computercolin/6a36684fdcd44ad8d9ec373aaabd3d19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Dummy agenda-prefix and formatting function. | |
;; For exporation of Todo heading properties. | |
(defun demo_org_entry_fmt_fn (elem) | |
(concat | |
;(or (org-entry-get elem "CustProp1") "noCustProp") | |
;"||" | |
;(or (org-entry-get elem "Effort") "noEff") | |
;"||" | |
(or (org-entry-get elem "TIMESTAMP") "noSTMP") | |
"||" | |
(or (org-entry-get elem "SCHEDULED") "noSCH") | |
"||" | |
(if (not (org-entry-get elem "DEADLINE")) | |
"noDED" | |
(let ( (ts_parsed (org-parse-time-string (org-entry-get elem "DEADLINE"))) ) | |
(format "%s(%s){%s-%s}" | |
(org-entry-get elem "DEADLINE") | |
(type-of (org-entry-get elem "DEADLINE")) | |
(nth 5 ts_parsed) | |
(nth 4 ts_parsed))) ) | |
":." | |
)) | |
(setq org-agenda-prefix-format "%(demo_org_entry_fmt_fn (point))") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment