From 1608f01157d6dd5d00fd0423d1f61b493b689ee3 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Wed, 24 Feb 2021 09:16:16 -0500 Subject: =?UTF-8?q?Rename=20=E2=80=98nspawn-tramp--init=E2=80=99=20to=20?= =?UTF-8?q?=E2=80=98nspawn-tramp-setup=E2=80=99=20and=20autoload=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This might as well be a public function. --- nspawn-tramp.el | 5 +++-- 1 file 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 -- cgit v1.2.3