aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-24 09:15:14 -0500
committerBrian Cully <bjc@kublai.com>2021-02-24 09:15:14 -0500
commit48102d38e7ef53df4a1d40d39b914cc150bef17e (patch)
treef06008c269d8ce1e7b9f696cdc3e7b8697f9f888
parent96152bc939dc64e43e7a282b858b11c705d9d7f2 (diff)
downloadtramp-nspawn-48102d38e7ef53df4a1d40d39b914cc150bef17e.tar.gz
tramp-nspawn-48102d38e7ef53df4a1d40d39b914cc150bef17e.zip
Clean up autoloads.
-rw-r--r--nspawn-tramp.el8
1 files 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)