[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote c7d1d1b6fd: Tweak examples with front matter for
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote c7d1d1b6fd: Tweak examples with front matter format |
Date: |
Sat, 6 Aug 2022 12:57:28 -0400 (EDT) |
branch: externals/denote
commit c7d1d1b6fdd3b6d8ab3cc3b31154cd4291c69fc3
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Tweak examples with front matter format
Better to use Org as it is the default. Also added the sample with the
all capital entries.
---
README.org | 43 ++++++++++++++++++++++++-------------------
1 file changed, 24 insertions(+), 19 deletions(-)
diff --git a/README.org b/README.org
index 3b98fdae4a..da04e2544b 100644
--- a/README.org
+++ b/README.org
@@ -876,29 +876,34 @@ With those granted, below are some examples. The
approach is the same
for all variables.
#+begin_src emacs-lisp
-;; Change the order
-(setq denote-yaml-front-matter
- "---
-title: %1$S
-tags: %3$s
-date: %2$s
-identifier: %4$S
----\n\n")
+;; Like the default, but upcase the entries
+(setq denote-org-front-matter
+ "#+TITLE: %s
+#+DATE: %s
+#+FILETAGS: %s
+#+IDENTIFIER: %s
+\n")
+
+;; Change the order (notice the %N$s notation)
+(setq denote-org-front-matter
+ "#+title: %1$s
+#+filetags: %3$s
+#+date: %2$s
+#+identifier: %4$s
+\n")
;; Remove the date
-(setq denote-yaml-front-matter
- "---
-title: %1$S
-tags: %3$s
-identifier: %4$S
----\n\n")
+(setq denote-org-front-matter
+ "#+title: %1$s
+#+filetags: %3$s
+#+identifier: %4$s
+\n")
;; Remove the date and the identifier
-(setq denote-yaml-front-matter
- "---
-title: %1$S
-tags: %3$s
----\n\n")
+(setq denote-org-front-matter
+ "#+title: %1$s
+#+filetags: %3$s
+\n")
#+end_src
Note that ~setq~ has a global effect: it affects the creation of all new
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/denote c7d1d1b6fd: Tweak examples with front matter format,
ELPA Syncer <=