Fix org-journal file header function
This commit is contained in:
parent
92073118b4
commit
2d4f8491f2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user