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

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

[elpa] externals/denote be58aec5db 163/355: Include journal sample that


From: ELPA Syncer
Subject: [elpa] externals/denote be58aec5db 163/355: Include journal sample that prompts for TITLE
Date: Sun, 26 Jun 2022 23:58:18 -0400 (EDT)

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

    Include journal sample that prompts for TITLE
---
 README.org | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/README.org b/README.org
index be8c39c435..4507a8a290 100644
--- a/README.org
+++ b/README.org
@@ -779,6 +779,18 @@ can be called from Lisp and given the required arguments 
of =TITLE= and
 By invoking ~my-denote-journal~ you will go straight into the newly
 created note and commit to your writing outright.
 
+Of course, you can always set up the function so that it asks for a
+=TITLE= but still automatically applies the =journal= tag:
+
+#+begin_src emacs-lisp
+(defun denote-journal-with-title ()
+  "Create an entry tagged 'journal', while prompting for a title."
+  (interactive)
+  (denote
+   (denote--title-prompt) ; ask for title, instead of using human-readable date
+   "journal"))
+#+end_src
+
 Sometimes journaling is done with the intent to hone one's writing
 skills.  Perhaps you are learning a new language or wish to communicate
 your ideas with greater clarity and precision.  As with everything that



reply via email to

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