(internal): small refactor (#340)

This commit is contained in:
Jethro Kuan
2020-03-22 12:12:40 +08:00
committed by GitHub
parent 6fae1d8100
commit def3d27d25

View File

@ -1009,7 +1009,7 @@ This is added as a hook to `org-capture-after-finalize-hook'."
"Opens the newly created template file.
This is added as a hook to `org-capture-after-finalize-hook'."
(when-let ((file-path (org-roam--capture-get :file-path)))
(when (not org-note-abort)
(unless org-note-abort
(find-file file-path)))
(remove-hook 'org-capture-after-finalize-hook #'org-roam--capture-find-file-h))