diff options
author | rekado <rekado@elephly.net> | 2014-10-28 14:16:51 +0100 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2014-10-28 14:16:51 +0100 |
commit | 599402691aed2407a2129124401bcc00fcfe4a27 (patch) | |
tree | 9f6012bb328e663df86f170dabe5db14ade09099 /init.el | |
parent | 42c331513e49c1a7456ceb8a8d61b456e6eb70b9 (diff) |
add ssh-dtach function
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -261,6 +261,15 @@ (when line-numbers-off-p (linum-mode -1))))) +(defun ssh-dtach (host) + "Open SSH connection to HOST and start dtach session." + (interactive) + (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)))) + ;; show time and date in modeline (display-time-mode 1) (setq display-time-day-and-date t) |