Eshel Yaron <m...@eshelyaron.com> writes: Hi Eshel,
>> Then use >> >> ;;;###autoload >> (with-eval-after-load 'tramp >> (tramp-enable-method "foo")) >> >> instead. Everything untested, of course. > > This is more or less what the extensions you referred to seem to do. > I'm looking for a more refined solution: a way to load an extension only > if and when the method it provides is actually used, not as soon as > Tramp is loaded. I might indeed use this approach until I find > something better, though. The extension (foo-tramp) isn't loaded when Tramp is loaded. My code snippets use autoloads therefore. > Best, > > Eshel Best regards, Michael.