Closed promisedlandt closed 3 years ago
Thanks for the detailed report! Of course, it's not the expected behaviour.
Since I use magic comment for org-media-note-setup-org-ref
, the autoloaded function should be called correctly without requiring org-media-note-org-ref
, as long as you config your autoload mechanism.
https://github.com/yuchen-lea/org-media-note/blob/fa5c2e759f90069dcf7d19076f47b537e00b9d15/org-media-note-org-ref.el#L145
I think the reason may be installing this package manually, without using package.el
or straight
. In this way, no xxx-autoloads.el
is generated, thus org-media-note-setup-org-ref
cannot be found.
To sum up, if you install manually, you have to require org-media-note-org-ref. If you use some package manager, like straight
, autoload will do that automatically for you.
Hello Yuchen,
I get the error
(void-function org-media-note-setup-org-ref)
when I enter an org file. Installed org-media-note by cloning to directory, adding it to load path, and adding the following to my init.el:If I add
(require 'org-media-note-org-ref)
it works. Is it a bug and you can fix it? Otherwise, if it's expected behaviour, I am happy open a pull request and add it to the readme if you like.Stack trace:
I am using org-media-note git version fa5c2e759f90069dcf7d19076f47b537e00b9d15