Function: denote-add-front-matter-prompt
denote-add-front-matter-prompt is a byte-compiled function defined in
denote.el.
Signature
(denote-add-front-matter-prompt FILE)
Documentation
Prompt to add a front-matter to FILE.
Return non-nil if a new front matter should be added.
If denote-rename-confirmations does not contain
add-front-matter, return t without prompting.
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-add-front-matter-prompt (file)
"Prompt to add a front-matter to FILE.
Return non-nil if a new front matter should be added.
If `denote-rename-confirmations' does not contain
`add-front-matter', return t without prompting."
(or (not (memq 'add-front-matter denote-rename-confirmations))
(y-or-n-p
(format "Add new front matter to %s?"
(propertize (file-name-nondirectory file) 'face 'denote-faces-prompt-new-name)))))