aboutsummaryrefslogtreecommitdiffstats
path: root/nspawn-tramp.el
diff options
context:
space:
mode:
Diffstat (limited to 'nspawn-tramp.el')
-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