Last active
January 7, 2020 13:11
-
-
Save apraga/932f0aec974f8d01068d7693dd26fca6 to your computer and use it in GitHub Desktop.
Org-mode : moving date node around
This file contains hidden or 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
;; 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