branch: externals/denote commit 1d2ae08b5db71f60561133531e38688ba9cc9838 Merge: 514a5d0d39 32873d6585 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: GitHub <nore...@github.com>
Merge pull request #303 from jeanphilippegg/fix-denote-org-capture Insert string template in denote-org-capture (fix for issue #302) --- 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