branch: externals/denote
commit c7d1d1b6fdd3b6d8ab3cc3b31154cd4291c69fc3
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
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