aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-24 13:38:44 -0500
committerBrian Cully <bjc@kublai.com>2021-02-24 13:38:44 -0500
commitcb58c4f9aaac0c5eba7e265f5b533ee23edeb6fa (patch)
tree9380f08fd93f2e4457775af323e65737b6eac5c6
parentdf4ba32b896850a49d949801054829773761dd1a (diff)
downloadtramp-nspawn-cb58c4f9aaac0c5eba7e265f5b533ee23edeb6fa.tar.gz
tramp-nspawn-cb58c4f9aaac0c5eba7e265f5b533ee23edeb6fa.zip
tyop
-rw-r--r--nspawn-tramp.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/nspawn-tramp.el b/nspawn-tramp.el
index 54e6999..01d295e 100644
--- a/nspawn-tramp.el
+++ b/nspawn-tramp.el
@@ -32,6 +32,10 @@
;;
;; ## Usage
;;
+;; Call ‘nspawn-tramp-setup’ in your Emacs initialization.
+;;
+;; (add-hook 'after-init-hook 'nspawn-tramp-setup)
+;;
;; Open a file on a running systemd-nspawn container:
;;
;; C-x C-f /nspawn:user@container:/path/to/file
@@ -101,7 +105,7 @@ see its function help for a description of the format."
tramp-methods))
(defun nspawn-tramp--remove-method ()
- "Remove TRAMP method handler for nspawn conainers."
+ "Remove TRAMP method handler for nspawn containers."
(setf (alist-get nspawn-tramp-method tramp-methods nil t 'string=) nil))
(defun nspawn-tramp-unload-function ()
@@ -117,9 +121,5 @@ see its function help for a description of the format."
(tramp-set-completion-function nspawn-tramp-method
'((nspawn-tramp--completion-function ""))))
-;;;###autoload
-(eval-after-load 'tramp
- (nspawn-tramp-setup))
-
(provide 'nspawn-tramp)
;;; nspawn-tramp.el ends here