diff --git a/custom/capture.el b/custom/capture.el index dc08326..b564ed0 100644 --- a/custom/capture.el +++ b/custom/capture.el @@ -184,8 +184,6 @@ (setq returnprogress (concat "*" bookprogress "%.* ")) returnprogress) - (setq org-default-notes-file (concat "~/Documents/drive/org/journal/" (format-time-string "%Y/%m/%Y-%m-%d") ".org")) - (setq org-capture-templates '(("a" "Acquired book" entry (file+function "" findacquired) @@ -232,4 +230,10 @@ "* %^{Title} (%setconsole)" :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)))