Re: How to autoload Tramp methods
Michael Albinus <[email protected]> Wed, 09 Oct 2024 08:52:30 +0200
| Newsgroups | gmane.emacs.tramp |
|---|---|
| Message-ID | <[email protected]> |
Eshel Yaron <[email protected]> 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.