From 2d4f8491f23d9458f0b352e7ea77a7d6cb538f21 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 21 Jul 2020 09:42:06 -0400 Subject: [PATCH] Fix org-journal file header function --- emacs/init.org | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 192a900..59faf3d 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2256,10 +2256,9 @@ nice with Org-roam: (use-package org-journal :defer t :init - (defun org-journal-file-header-func () - (let () - (format "#+TITLE: %s" - (format-time-string "%Y-%m-%d")))) + (defun org-journal-file-header-func (time) + (format "#+TITLE: %s" + (format-time-string "%Y-%m-%d" time))) (defun org-journal-today () (interactive) (org-journal-new-entry t)) @@ -2269,8 +2268,8 @@ nice with Org-roam: ;; Account for the #+TITLE (forward-line)) (add-to-list 'org-capture-templates - '("j" "Journal entry" entry (function org-journal-capture-func) - "* %(format-time-string org-journal-time-format)\n%?")) + '("j" "Journal entry" entry (function org-journal-capture-func) + "* %(format-time-string org-journal-time-format)\n%?")) (jdormit/define-prefix "oj" "org-journal") (leader-def-key "ojn" #'org-journal-new-entry) (leader-def-key "ojt" #'org-journal-today)