(bugfix): fix new file template default case (#169)

ref #165

Without this change I am getting the error:

    org-roam--make-new-file: Symbol’s function definition is void: file-name-fn
This commit is contained in:
Herbert Jones
2020-02-23 08:54:59 -06:00
committed by GitHub
parent f9a903f52d
commit b2dc9b33f6

View File

@@ -261,7 +261,7 @@ It uses TITLE and the current timestamp to form a unique title."
(if template-key (if template-key
(setq template (cadr (assoc template-key org-roam-templates))) (setq template (cadr (assoc template-key org-roam-templates)))
(if (= (length org-roam-templates) 1) (if (= (length org-roam-templates) 1)
(setq template (car org-roam-templates)) (setq template (cadar org-roam-templates))
(setq template (setq template
(cadr (assoc (completing-read "Template: " org-roam-templates) (cadr (assoc (completing-read "Template: " org-roam-templates)
org-roam-templates))))) org-roam-templates)))))