[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp:sshx:(screen|tmux)
From: |
Svend Sorensen |
Subject: |
Re: tramp:sshx:(screen|tmux) |
Date: |
Wed, 10 Sep 2014 17:22:51 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (darwin) |
address@hidden writes:
> Michael Albinus <address@hidden> writes:
>
> I have used dtach for this, albeit in a slightly different context.
> Maybe dtach can be of use for tramp?
I use the following function to start a remote shell running dtach.
(defun ssh-dtach (host)
"Open SSH connection to HOST and start dtach session."
(interactive (list (ssh-host-completing-read)))
(let ((explicit-shell-file-name "dtach")
(explicit-dtach-args '("-A" "/tmp/emacs.dtach" "-z"
"/bin/bash" "--noediting" "-login"))
(default-directory (format "/ssh:%s:" host)))
(shell (format "*ssh %s*" host))))