diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-24 09:16:16 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-24 09:16:16 -0500 |
commit | 1608f01157d6dd5d00fd0423d1f61b493b689ee3 (patch) | |
tree | 51f2acda5d193137c07cec3d48f11f82f8020002 | |
parent | 48102d38e7ef53df4a1d40d39b914cc150bef17e (diff) | |
download | tramp-nspawn-1608f01157d6dd5d00fd0423d1f61b493b689ee3.tar.gz tramp-nspawn-1608f01157d6dd5d00fd0423d1f61b493b689ee3.zip |
Rename ‘nspawn-tramp--init’ to ‘nspawn-tramp-setup’ and autoload it.
This might as well be a public function.
-rw-r--r-- | nspawn-tramp.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nspawn-tramp.el b/nspawn-tramp.el index 5254415..a748ab6 100644 --- a/nspawn-tramp.el +++ b/nspawn-tramp.el @@ -104,7 +104,8 @@ see its function help for a description of the format." "Remove TRAMP method handler for nspawn conainers." (setf (alist-get nspawn-tramp-method tramp-methods nil t 'string=) nil)) -(defun nspawn-tramp--init () +;;;###autoload +(defun nspawn-tramp-setup () "Initialize systemd-nspawn support for TRAMP." (nspawn-tramp--remove-method) (nspawn-tramp--add-method) @@ -113,7 +114,7 @@ see its function help for a description of the format." ;;;###autoload (eval-after-load 'tramp - (nspawn-tramp--init)) + (nspawn-tramp-setup)) (provide 'nspawn-tramp) ;;; nspawn-tramp.el ends here |