[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using ssh-host in ssh.el mode hook?
From: |
Felix E. Klee |
Subject: |
Using ssh-host in ssh.el mode hook? |
Date: |
Tue, 29 Oct 2002 11:10:48 +0100 |
User-agent: |
KNode/0.7.1 |
Hi,
in order to get file name completion via Tramp I added the following code to
the mode hook of ssh mode:
(lambda () (setq comint-file-name-prefix (concat "/ssh:" ssh-host ":")))
However, ssh-host does not seem to be defined at the time the mode hook is
applied. Therefore, after starting an ssh session to somehost,
comint-file-name-prefix contains "/ssh::" instead of "/ssh:somehost:".
Any ideas how to solve this problem?
Felix
- Using ssh-host in ssh.el mode hook?,
Felix E. Klee <=