[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 08d77add46 1/4: Make denote-journal-extras-direc
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 08d77add46 1/4: Make denote-journal-extras-directory explicitly accept a nil value |
Date: |
Thu, 12 Oct 2023 00:57:52 -0400 (EDT) |
branch: externals/denote
commit 08d77add4647e4c6a2b0e5945a347f025b6000d5
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make denote-journal-extras-directory explicitly accept a nil value
It should have worked before, though it was not documented and not
provided as an option via the Custom interface.
---
README.org | 5 +++++
denote-journal-extras.el | 10 ++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
index 03b3ad7894..c284dcc885 100644
--- a/README.org
+++ b/README.org
@@ -2277,6 +2277,11 @@ subdirectory thereof. To make it easier for the user,
the new journal
entry will be placed in ~denote-journal-extras-directory~, which
defaults to a subdirectory of ~denote-directory~ called =journal=.
+If ~denote-journal-extras-directory~ is nil, the ~denote-directory~ is
+used. Journal entries will thus be in a flat listing together with
+all other notes. They can still be retrieved easily by searching for
+the ~denote-journal-extras-keyword~
([[#h:1a953736-86c2-420b-b566-fb22c97df197][Features of the file-naming scheme
for searching or filtering]]).
+
#+vindex: denote-journal-extras-title-format
Furthermore, the command ~denote-journal-extras-new-entry~ will use
the current date as the title of the new entry. The exact format is
diff --git a/denote-journal-extras.el b/denote-journal-extras.el
index 673e123656..a7a3e6019f 100644
--- a/denote-journal-extras.el
+++ b/denote-journal-extras.el
@@ -42,9 +42,15 @@
(expand-file-name "journal" denote-directory)
"Directory for storing daily journal entries.
This can either be the same as the variable `denote-directory' or
-a subdirectory of it."
+a subdirectory of it.
+
+A value of nil means to use the variable `denote-directory'.
+Journal entries will thus be in a flat listing together with all
+other notes. They can still be retrieved easily by searching for
+the `denote-journal-extras-keyword'."
:group 'denote-journal-extras
- :type 'directory)
+ :type '(choice (directory :tag "Provide directory path (is created if
missing)")
+ (const :tag "Use the `denote-directory'" nil)))
(defcustom denote-journal-extras-keyword "journal"
"Single word keyword to tag journal entries.