From b2dc9b33f6a852f70483113c8b69f00d3e23ca86 Mon Sep 17 00:00:00 2001 From: Herbert Jones Date: Sun, 23 Feb 2020 08:54:59 -0600 Subject: [PATCH] (bugfix): fix new file template default case (#169) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #165 Without this change I am getting the error: org-roam--make-new-file: Symbol’s function definition is void: file-name-fn --- org-roam.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam.el b/org-roam.el index 62e326c..8ec33d7 100644 --- a/org-roam.el +++ b/org-roam.el @@ -261,7 +261,7 @@ It uses TITLE and the current timestamp to form a unique title." (if template-key (setq template (cadr (assoc template-key org-roam-templates))) (if (= (length org-roam-templates) 1) - (setq template (car org-roam-templates)) + (setq template (cadar org-roam-templates)) (setq template (cadr (assoc (completing-read "Template: " org-roam-templates) org-roam-templates)))))