Reevaluate journal filepath on capture

This commit is contained in:
mez 2025-05-03 12:37:15 +01:00
parent a6e848bcf2
commit 602a431092

View file

@ -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 todays 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)))