emacs - How can I series fill dates in an org-mode table column -
how fill column dates in org-mode , specify period between them? i'm after being able produce along lines of:
|date |event | |----------+-------| |2014-03-10|event 1| |2013-03-17|event 2| |2013-03-21|event 3| |and on | |
try using tiny package.
this snippet:
m\n7||%(date "2013-03-21" (* x 7))|event %(1+ x)|
on c-; expands to:
|2013-03-21 thu|event 1| |2013-03-28 thu|event 2| |2013-04-04 thu|event 3| |2013-04-11 thu|event 4| |2013-04-18 thu|event 5| |2013-04-25 thu|event 6| |2013-05-02 thu|event 7| |2013-05-09 thu|event 8|
it's more or less intuitive if know elisp - snippet above shorthand for:
(mapconcat (lambda(x) (let ((lst (list x))) (format "|%s|event %s|" (tiny-date "2013-03-21" (* x 7)) (1+ x)))) (number-sequence 0 7) "\n")
Comments
Post a Comment