Skip to content

Instantly share code, notes, and snippets.

@apraga
Last active January 7, 2020 13:11
Show Gist options
  • Save apraga/932f0aec974f8d01068d7693dd26fca6 to your computer and use it in GitHub Desktop.
Save apraga/932f0aec974f8d01068d7693dd26fca6 to your computer and use it in GitHub Desktop.
Org-mode : moving date node around
;; We want to convert a line with a date like this
;;2019-10-01
;;To a new datetreenode with some text, like this
;; * 2019
;; ** 2019-10 October
;; *** 2019-10-10
;; **** Handstand
;; It will create the datetree if it does not already exists
;; But I could not figure how to work directly on a org node like tis
;; * 2019-10-01
(org-datetree-file-entry-under "* Handstand" (org-date-to-gregorian (thing-at-point 'line)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment