rexim / org-cliplink

Insert org-mode links from clipboard
323 stars 11 forks source link

Require? #124

Closed AtomicNess123 closed 2 years ago

AtomicNess123 commented 4 years ago

I notice that I did not include (require 'org-cliplink) and the package is working. Is require needed at all?

rexim commented 4 years ago

@Gahamelas this is how Autoload works afaik.

org-cliplink function is marked with the autoload cookie so the library should be automatically loaded when you first time call the function.

rexim commented 4 years ago

This is actually a pretty common practice among Emacs extensions.

AtomicNess123 commented 4 years ago

Thanks for illustrating me. How do I know in the future if a package is marked with the autoload cookie?

rexim commented 4 years ago

I have no idea! :) Maybe there is some sort of standard method, but I usually just try to use the package without require and if it doesn't work I add it. :D

AtomicNess123 commented 4 years ago

Thanks! As a beginner in Emacs, I know there is a way by using the function "autoload", but I haven't gotten around to learning it. But my init takes half a minute to load... with all the "requires" I got there... :P