branch: externals/denote
commit 32873d6585e0e65ab5d30f90d2e5fad8729a71fb
Author: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>

    Insert string template in denote-org-capture
---
 denote.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 50ea9db996..ec804ae6bd 100644
--- a/denote.el
+++ b/denote.el
@@ -4631,7 +4631,9 @@ Consult the manual for template samples."
          (directory (if (denote--dir-in-denote-directory-p subdirectory)
                         (file-name-as-directory subdirectory)
                       (denote-directory)))
-         (template (or (alist-get template denote-templates) ""))
+         (template (if (stringp template)
+                       template
+                     (or (alist-get template denote-templates) "")))
          (signature (or signature ""))
          (front-matter (denote--format-front-matter
                         title (denote--date nil 'org) keywords

Reply via email to