mattfidler / org-outlook.el

org-mode and outlook integration.
43 stars 8 forks source link

Autoload changes for org-add-link-type call #1

Closed bnbeckwith closed 11 years ago

bnbeckwith commented 11 years ago

In you autoload cookies, you have this function defined.

;;;###autoload
(org-add-link-type "outlook" 'org-outlook-open)

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.

;;;###autoload
(eval-after-load "org-mode" '(org-add-link-type "outlook" 'org-outlook-open))

Naturally, this waits until org-mode is loaded to execute, or runs right away if org-mode is already loaded.

mattfidler commented 11 years ago

Thanks. I changed your code slightly. org-mode is defined in org.el

Matt.