Reevaluate journal filepath on capture
This commit is contained in:
parent
a6e848bcf2
commit
602a431092
1 changed files with 7 additions and 3 deletions
|
@ -184,8 +184,6 @@
|
||||||
(setq returnprogress (concat "*" bookprogress "%.* "))
|
(setq returnprogress (concat "*" bookprogress "%.* "))
|
||||||
returnprogress)
|
returnprogress)
|
||||||
|
|
||||||
(setq org-default-notes-file (concat "~/Documents/drive/org/journal/" (format-time-string "%Y/%m/%Y-%m-%d") ".org"))
|
|
||||||
|
|
||||||
(setq org-capture-templates
|
(setq org-capture-templates
|
||||||
'(("a" "Acquired book" entry
|
'(("a" "Acquired book" entry
|
||||||
(file+function "" findacquired)
|
(file+function "" findacquired)
|
||||||
|
@ -232,4 +230,10 @@
|
||||||
"* %^{Title} (%setconsole)"
|
"* %^{Title} (%setconsole)"
|
||||||
:jump-to-captured t)))
|
:jump-to-captured t)))
|
||||||
|
|
||||||
(global-set-key (kbd "C-c c") #'org-capture)))
|
(defun org-capture-today ()
|
||||||
|
(interactive)
|
||||||
|
"Capture a note in today’s file."
|
||||||
|
(setq org-default-notes-file (concat "~/Documents/drive/org/journal/" (format-time-string "%Y/%m/%Y-%m-%d") ".org"))
|
||||||
|
(org-capture))
|
||||||
|
|
||||||
|
(global-set-key (kbd "C-c c") #'org-capture-today)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue