davidshepherd7 / terminal-here

An Emacs package to open an external terminal emulator in the current directory
GNU General Public License v3.0
73 stars 12 forks source link

autoload terminal-here-launch-in-directory #8

Closed wbolster closed 7 years ago

wbolster commented 7 years ago

the terminal-here-launch-in-directory function could be an autoload since this seems to be the "programmatic interface" entry point.

wbolster commented 7 years ago

oh, and thanks for this package. it worked out of the box with very sensible defaults like using projectile-root.

davidshepherd7 commented 7 years ago

Hmm, I was under the impression that autoloads were normally used for interactive entry points only. For programmatic use I would expect the autoloads to be on the top-level interactive function, and when it is called it loads whatever libraries it needs with require as part of loading the rest of the package.

I can't really find any official documentation on this, all I found was this which seems to agree.

I'm happy to change my mind though, if you can point me to something that explains when/why it is useful to autoload non-interactive things :+1:

wbolster commented 7 years ago

i think you may be right.