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

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

[elpa] externals/denote 14f691939a 3/4: Refine denote-file-types documen


From: ELPA Syncer
Subject: [elpa] externals/denote 14f691939a 3/4: Refine denote-file-types documentation
Date: Sat, 29 Oct 2022 23:57:30 -0400 (EDT)

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

    Refine denote-file-types documentation
---
 README.org |  3 +++
 denote.el  | 10 +++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/README.org b/README.org
index 83a221144a..e5034e8a9e 100644
--- a/README.org
+++ b/README.org
@@ -2672,6 +2672,9 @@ might change them without further notice.
      the keywords' value from the front matter.  It performs the reverse
      of the =:keywords-value-function=.
 
+  If ~denote-file-type~ is nil, we use the first element of this list
+  for new note creation.  The default is ~org~.
+
 #+vindex: denote-org-front-matter
 + Variable ~denote-org-front-matter~ :: Specifies the Org front
   matter.  It is passed to ~format~ with arguments =TITLE=, =DATE=,
diff --git a/denote.el b/denote.el
index 5a7d697bb6..973f29bcf5 100644
--- a/denote.el
+++ b/denote.el
@@ -866,10 +866,7 @@ Consult the `denote-file-types' for how this is used."
     (split-string keywords-string "[:,\s]+" t "[][ \"']+")))
 
 (defvar denote-file-types
-  ;; If denote-file-type is nil, we use the first element
-  ;; of denote-file-types for new note creation, which we want
-  ;; to be org by default.
-  `((org
+  '((org
      :extension ".org"
      :front-matter denote-org-front-matter
      :title-key-regexp "^#\\+title\\s-*:"
@@ -944,7 +941,10 @@ PROPERTY-LIST is a plist that consists of 8 elements:
 
 - `:keywords-value-reverse-function' is the function used to
   retrieve the keywords' value from the front matter.  It
-  performs the reverse of the `:keywords-value-function'.")
+  performs the reverse of the `:keywords-value-function'.
+
+If `denote-file-type' is nil, we use the first element of this
+list for new note creation.  The default is `org'.")
 
 (defun denote--file-extension (file-type)
   "Return file type extension based on FILE-TYPE."



reply via email to

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