fix(lib): doom/reload-docs: `org-id-get' warnings
Prevents '`org-id-get' expects a file-visiting buffer' warnings in some in-repo org files.
This commit is contained in:
parent
deb83dc6a9
commit
75d4046820
1 changed files with 4 additions and 4 deletions
|
@ -467,10 +467,10 @@ This primes `org-mode' for reading."
|
|||
(org-id-locations doom-docs--id-locations)
|
||||
(org-id-files doom-docs--id-files))
|
||||
(doom/reload-docs)
|
||||
(let ((id (org-id-new)))
|
||||
(org-id-add-location
|
||||
id (buffer-file-name (buffer-base-buffer)))
|
||||
id)))
|
||||
(when-let (fname (buffer-file-name (buffer-base-buffer)))
|
||||
(let ((id (org-id-new)))
|
||||
(org-id-add-location id fname)
|
||||
id))))
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode doom-docs-org-mode org-mode "Doom Docs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue