mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -467,10 +467,10 @@ This primes `org-mode' for reading."
|
|||||||
(org-id-locations doom-docs--id-locations)
|
(org-id-locations doom-docs--id-locations)
|
||||||
(org-id-files doom-docs--id-files))
|
(org-id-files doom-docs--id-files))
|
||||||
(doom/reload-docs)
|
(doom/reload-docs)
|
||||||
(let ((id (org-id-new)))
|
(when-let (fname (buffer-file-name (buffer-base-buffer)))
|
||||||
(org-id-add-location
|
(let ((id (org-id-new)))
|
||||||
id (buffer-file-name (buffer-base-buffer)))
|
(org-id-add-location id fname)
|
||||||
id)))
|
id))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(define-derived-mode doom-docs-org-mode org-mode "Doom Docs"
|
(define-derived-mode doom-docs-org-mode org-mode "Doom Docs"
|
||||||
|
Reference in New Issue
Block a user