Fix org-roam hooks not being attached on nested files (#82)

This commit is contained in:
Jethro Kuan
2020-02-15 11:36:10 +08:00
committed by GitHub
parent 684ab67952
commit 01130b49e1

View File

@ -152,8 +152,8 @@ If called interactively, then PARENTS is non-nil."
(defun org-roam--org-roam-file-p ()
"Return t if file is part of org-roam system, false otherwise."
(and (buffer-file-name (current-buffer))
(f-child-of-p (file-truename (buffer-file-name (current-buffer)))
org-roam-directory)))
(f-descendant-of-p (file-truename (buffer-file-name (current-buffer)))
org-roam-directory)))
(defun org-roam--get-title-from-cache (file)
"Return title of `FILE' from the cache."