Add refile function for scrobbles
This commit is contained in:
parent
a170641b0c
commit
5b16cd2480
1 changed files with 11 additions and 0 deletions
|
@ -20,6 +20,17 @@
|
|||
(let ((org-refile-targets '((orgfilepath :maxlevel . 1))))
|
||||
(org-refile)))
|
||||
|
||||
(defun filemusic ()
|
||||
"Refile heading to specific file based on heading (music edition)"
|
||||
(interactive)
|
||||
(setq orgheading (org-get-heading))
|
||||
(setq orgyear (substring orgheading 0 4))
|
||||
(setq orgmonth (substring orgheading 5 7))
|
||||
(setq orgfilepath (concat "~/Documents/drive/org/journal/" orgyear "/" orgmonth "/" orgheading ".org"))
|
||||
(org-edit-headline "music")
|
||||
(let ((org-refile-targets '((orgfilepath :maxlevel . 1))))
|
||||
(org-refile)))
|
||||
|
||||
(defun filedate ()
|
||||
"Insert timestamp if required based on file name"
|
||||
(interactive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue