emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 2d9197da16 4/4: Tweak sample Journal code from c


From: ELPA Syncer
Subject: [elpa] externals/denote 2d9197da16 4/4: Tweak sample Journal code from commit cbd39ad
Date: Thu, 11 May 2023 11:57:35 -0400 (EDT)

branch: externals/denote
commit 2d9197da160322b43978682e3b76233365415403
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Tweak sample Journal code from commit cbd39ad
---
 README.org | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 669861022c..248bf547e8 100644
--- a/README.org
+++ b/README.org
@@ -2152,7 +2152,8 @@ If a journal for the current day exists, visit it.  If 
multiple
 entries exist, prompt with completion for a choice between them.
 Else create a new file."
   (interactive)
-  (let* ((string (denote-sluggify (format-time-string "%A %e %B %Y")))
+  (let* ((today (format-time-string "%A %e %B %Y"))
+         (string (denote-sluggify today))
          (files (denote-directory-files-matching-regexp string)))
     (cond
      ((> (length files) 1)
@@ -2161,7 +2162,7 @@ Else create a new file."
       (find-file (car files)))
      (t
       (denote
-       (format-time-string "%A %e %B %Y")
+       today
        '("journal"))))))
 #+end_src
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]