mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix): set default-directory in org-roam-with-temp-buffer (#1300)
This ensures that relative paths in keywords such as `#+setupfile:` and `#+include:` work when building cache etc.
This commit is contained in:
@ -62,7 +62,8 @@ If FILE, set `org-roam-temp-file-name' to file and insert its contents."
|
||||
(with-temp-buffer
|
||||
(let ((org-roam-directory ,current-org-roam-directory)
|
||||
(org-mode-hook nil)
|
||||
(org-inhibit-startup t))
|
||||
(org-inhibit-startup t)
|
||||
(default-directory (file-name-directory ,file)))
|
||||
(org-mode)
|
||||
(when ,file
|
||||
(insert-file-contents ,file)
|
||||
|
Reference in New Issue
Block a user