Set up org-capture
This commit is contained in:
parent
7cfb540149
commit
759c011e98
3 changed files with 106 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
(defun filejournal ()
|
||||
"Refile heading to specific file based on heading"
|
||||
"Refile heading to specific file based on heading (journal edition)"
|
||||
(interactive)
|
||||
(setq orgheading (org-get-heading))
|
||||
(setq orgyear (substring orgheading 0 4))
|
||||
|
@ -9,6 +9,17 @@
|
|||
(let ((org-refile-targets '((orgfilepath :maxlevel . 1))))
|
||||
(org-refile)))
|
||||
|
||||
(defun filediscord ()
|
||||
"Refile heading to specific file based on heading (discord 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 "discord")
|
||||
(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