diff options
| author | BardofSprites <[email protected]> | 2025-11-02 22:27:58 -0500 |
|---|---|---|
| committer | BardofSprites <[email protected]> | 2025-11-02 22:27:58 -0500 |
| commit | 3230bc7f16e9b070400768f9139e7934332e6141 (patch) | |
| tree | c78aa3fc5aa7c2761011a6a3d7142b46f0c0bc35 /bard-elisp/bard-writing.el | |
| parent | 3fd0db9cfef810de8874e449f342b6b1afce0e7f (diff) | |
denote journal modifications
Diffstat (limited to 'bard-elisp/bard-writing.el')
| -rw-r--r-- | bard-elisp/bard-writing.el | 14 |
1 files changed, 14 insertions, 0 deletions
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) |
