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

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

[elpa] externals/denote e1c18f5f57 136/355: Remove potentially bad advic


From: ELPA Syncer
Subject: [elpa] externals/denote e1c18f5f57 136/355: Remove potentially bad advice from the manual
Date: Sun, 26 Jun 2022 23:58:14 -0400 (EDT)

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

    Remove potentially bad advice from the manual
    
    Thanks to Kaushal Modi for the feedback in issue 12 over at the GitHub
    mirror: <https://github.com/protesilaos/denote/issues/12>.
---
 README.org | 35 +----------------------------------
 1 file changed, 1 insertion(+), 34 deletions(-)

diff --git a/README.org b/README.org
index 02719d852b..c0ba460c00 100644
--- a/README.org
+++ b/README.org
@@ -619,40 +619,7 @@ notes in =~/blog/= 
([[#h:337f9cf0-9f66-45af-b73f-f6370472fb51][Fontification in
 #+end_src
 
 Given Denote's composable code, you can tweak the output however you
-like ([[#h:f69371d5-1843-493d-9ff5-c1ab3b43024e][Tweaking the front matter]]). 
 Consider the case where the
-alternative notes in the blog have no use for the identifier field
-inside the front matter.  Let's omit it!  (It will still be part of the
-file name.)
-
-#+begin_src emacs-lisp
-(setq denote-file-type nil)
-(setq denote-directory (expand-file-name "~/Documents/notes/"))
-
-;; Excerpt of the default:
-(defvar denote-toml-front-matter
-  "+++
-title      = %S
-date       = %s
-tags       = %s
-identifier = %S
-+++\n\n")
-
-;; Adding the N$ to show the order they are provided internally
-;; (explained in `denote-org-front-matter'),
-(defvar my-denote-toml-front-matter
-        "+++
-title      = %1$S
-date       = %2$s
-tags       = %3$s
-+++\n\n")
-
-(defun my-denote-markdown-toml ()
-  (interactive)
-  (let ((denote-file-type 'markdown-toml)
-        (denote-directory "~/blog/")
-        (denote-toml-front-matter my-denote-toml-front-matter))
-    (call-interactively #'denote)))
-#+end_src
+like ([[#h:f69371d5-1843-493d-9ff5-c1ab3b43024e][Tweaking the front matter]]).
 
 Have more ideas?  Something does not work quite right?  Areas you wish
 were more abstract in the code?  Please participate in the development



reply via email to

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