branch: externals/denote-journal commit 6aa9a9ef34b7f5a658237ad9287bb19e52266738 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add more outline headings --- denote-journal.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/denote-journal.el b/denote-journal.el index c08259e74f..4103b717ee 100644 --- a/denote-journal.el +++ b/denote-journal.el @@ -43,6 +43,8 @@ :link '(url-link :tag "Denote homepage" "https://protesilaos.com/emacs/denote") :link '(url-link :tag "Denote Journal homepage" "https://protesilaos.com/emacs/denote-journal")) +;;;; User options + (defcustom denote-journal-directory (expand-file-name "journal" denote-directory) "Directory for storing daily journal entries. @@ -114,6 +116,8 @@ journal entry (refer to the `tmr' package on GNU ELPA)." :group 'denote-journal :type 'hook) +;;;; Common helper functions + (defun denote-journal-directory () "Return the variable `denote-journal-directory' as a directory. If the path does not exist, then make it first." @@ -177,6 +181,8 @@ is non-nil, prompt the user for a template among (or (alist-get 'journal denote-templates) (denote-template-prompt)))) +;;;; New entry without special conditions + ;;;###autoload (defun denote-journal-new-entry (&optional date) "Create a new journal entry in variable `denote-journal-directory'. @@ -273,6 +279,8 @@ It is internally processed by `denote-valid-date-p'." (denote-date-prompt)))) (find-file (denote-journal-path-to-new-or-existing-entry date))) +;;;; Link or create functionality + ;;;###autoload (defun denote-journal-link-or-create-entry (&optional date id-only) "Use `denote-link' on journal entry, creating it if necessary.