From 3230bc7f16e9b070400768f9139e7934332e6141 Mon Sep 17 00:00:00 2001 From: BardofSprites <89086143+BardofSprites@users.noreply.github.com> Date: Sun, 2 Nov 2025 22:27:58 -0500 Subject: denote journal modifications --- bard-elisp/bard-writing.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bard-elisp') diff --git a/bard-elisp/bard-writing.el b/bard-elisp/bard-writing.el index cc99384..e1e4048 100644 --- a/bard-elisp/bard-writing.el +++ b/bard-elisp/bard-writing.el @@ -54,6 +54,16 @@ (insert (format ":PROPERTIES:\n:ID: %s\n:END:\n" id))) (save-buffer)) +(defun bard/denote-maybe-insert-id () + "Insert a top-level :ID: unless this is a denote journal file." + (interactive) + (let ((file (buffer-file-name))) + (unless (and file + (boundp 'denote-journal-directory) + (string-prefix-p (expand-file-name denote-journal-directory) + (expand-file-name file))) + (bard/denote-insert-id-at-top)))) + (defun denote-sequence-region () "Call `denote-sequence' and insert therein the text of the active region. @@ -154,5 +164,9 @@ saved or killed at the end of `denote-sequence-region'." (global-set-key (kbd "C-c u") #'bard/jump-to-class) (global-set-key (kbd "C-c U") #'bard/jump-to-class-new-frame) +(defun bard/denote-todo-template () + "Return string for daily tasks heading in `denote-journal' entries" + (format "* Tasks for %s\n\n* Notes for today" + (format-time-string "%Y-%m-%d (%a)"))) (provide 'bard-writing) -- cgit v1.2.3