From 48102d38e7ef53df4a1d40d39b914cc150bef17e Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Wed, 24 Feb 2021 09:15:14 -0500 Subject: Clean up autoloads. --- nspawn-tramp.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nspawn-tramp.el b/nspawn-tramp.el index 71ad3b7..5254415 100644 --- a/nspawn-tramp.el +++ b/nspawn-tramp.el @@ -69,11 +69,9 @@ :type 'string :group 'nspawn-tramp) -;;;###autoload (defconst nspawn-tramp-method "nspawn" "TRAMP method name to use to connect to systemd-nspawn containers.") -;;;###autoload (defun nspawn-tramp--completion-function (&rest _args) "List systemd-nspawn containers available for connection. @@ -88,7 +86,7 @@ see its function help for a description of the format." (machines (seq-take-while (lambda (name) name) first-words))) (mapcar (lambda (m) (list nil m)) machines))) -;;;###autoload + (defun nspawn-tramp--add-method () "Add TRAMP method handler for nspawn conainers." (push `(,nspawn-tramp-method @@ -102,12 +100,10 @@ see its function help for a description of the format." (tramp-remote-shell-args ("-i" "-c"))) tramp-methods)) -;;;###autoload (defun nspawn-tramp--remove-method () "Remove TRAMP method handler for nspawn conainers." (setf (alist-get nspawn-tramp-method tramp-methods nil t 'string=) nil)) -;;;###autoload (defun nspawn-tramp--init () "Initialize systemd-nspawn support for TRAMP." (nspawn-tramp--remove-method) @@ -116,7 +112,7 @@ see its function help for a description of the format." '((nspawn-tramp--completion-function "")))) ;;;###autoload -(eval-after-load 'tramp-remote-path +(eval-after-load 'tramp (nspawn-tramp--init)) (provide 'nspawn-tramp) -- cgit v1.2.3