When using ELPA, I don't have org-mode loaded before these autoloads, so the org-add-link-type function has no definition at autoload time. If you change to the following, it should work better for the case in which org-mode is not loaded right away.
In you autoload cookies, you have this function defined.
When using ELPA, I don't have org-mode loaded before these autoloads, so the
org-add-link-type
function has no definition at autoload time. If you change to the following, it should work better for the case in which org-mode is not loaded right away.Naturally, this waits until org-mode is loaded to execute, or runs right away if org-mode is already loaded.