[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote bca23b3e3d 115/355: Clarify how front matter var
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote bca23b3e3d 115/355: Clarify how front matter variables are used |
Date: |
Sun, 26 Jun 2022 23:58:11 -0400 (EDT) |
branch: externals/denote
commit bca23b3e3de743e0f4ca69400e270181ffef487f
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Clarify how front matter variables are used
This "hidden option" lets the user do something like this (I prepend >
to escape the #):
> (setq denote-org-front-matter
> ":PROPERTIES:
> :ID: %4$s
> :END:
> #+title: %1$s
> #+date: %2$s
> #+filetags: %3$s
> #+identifier: %4$s
> \n")
Ultimately though, it gives us more flexibility if we ever want to
support extra features.
One such feature is the ability to create links using the org-id.el
library. See issue 8 over at the GitHub mirror, with feedback from
Kaushal Modi: <https://github.com/protesilaos/denote/issues/8>.
---
denote.el | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index 0e5022d31c..fa04d4274c 100644
--- a/denote.el
+++ b/denote.el
@@ -375,7 +375,8 @@ date = %s
tags = %s
identifier = %S
+++\n\n"
- "TOML front matter value for `format'.")
+ "TOML front matter value for `format'.
+Read `denote-org-front-matter' for the technicalities.")
(defvar denote-yaml-front-matter
"---
@@ -384,7 +385,8 @@ date: %s
tags: %s
identifier: %S
---\n\n"
- "YAML front matter value for `format'.")
+ "YAML front matter value for `format'.
+Read `denote-org-front-matter' for the technicalities.")
(defvar denote-text-front-matter
"title: %s
@@ -392,7 +394,8 @@ date: %s
tags: %s
identifier: %s
%s\n\n"
- "Plain text front matter value for `format'.")
+ "Plain text front matter value for `format'.
+Read `denote-org-front-matter' for the technicalities.")
(defvar denote-org-front-matter
"#+title: %s
@@ -400,7 +403,11 @@ identifier: %s
#+filetags: %s
#+identifier: %s
\n"
- "Org front matter value for `format'.")
+ "Org front matter value for `format'.
+The order of the arguments is TITLE, DATE, KEYWORDS, ID. If you
+are an avdanced user who wants to edit this variable to affect
+how front matter is produced, consider using something like %2$s
+to control where Nth argument is placed.")
(defun denote--file-meta-header (title date keywords id)
"Front matter for new notes.
- [elpa] externals/denote 2bc5df6011 103/355: denote-file-type: 'markdown-yaml', not 'markdown', (continued)
- [elpa] externals/denote 2bc5df6011 103/355: denote-file-type: 'markdown-yaml', not 'markdown', ELPA Syncer, 2022/06/27
- [elpa] externals/denote d83c166c0d 125/355: Fix regexp for keywords, ELPA Syncer, 2022/06/27
- [elpa] externals/denote ebdacb3fea 073/355: Update doc string of denote-directory function, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 91f4780779 083/355: Merge pull request #3 from kaushalmodi/add-gitignore, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 17ad20f356 097/355: Document section on front matter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 929157d424 089/355: Stop using link abbreviation, ELPA Syncer, 2022/06/27
- [elpa] externals/denote a809e9ea1d 087/355: Clarify active development; things might break, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 3f9bfcb74e 101/355: Name the FSF as the copyright holder, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 299b8970ee 095/355: Add support for notes in Markdown and Plain Text, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 112a12e6e5 130/355: Remove duplicate word from face names, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bca23b3e3d 115/355: Clarify how front matter variables are used,
ELPA Syncer <=
- [elpa] externals/denote f91d2472c3 128/355: Make the field delimiter face a bit more subtle, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8a35382067 126/355: Rename internal variable for clarity, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 308322afab 108/355: Fix markdown-toml identifier value, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 11be1d6b40 123/355: Change "tml" to "toml" in denote-toml-front-matter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 6000313eec 118/355: Enforce sluggification of keywords; document it, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 82eeb381dc 110/355: Make all front matter abstractions consistent, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 73dc07ac00 113/355: Make front matter variables "public", ELPA Syncer, 2022/06/27
- [elpa] externals/denote 21e415e2e7 111/355: Remove obsolete symbol of command, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 60d64ca07c 117/355: Document ways to change the front matter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 28518416f3 131/355: Name the faces in the manual, ELPA Syncer, 2022/06/27