Live data from Hacker News

Emacs Power: remote servers and shell commands

gregorygrubbs.com

11–12 of 12 posts

Re: Emacs Power: remote servers and shell commands

#11
post #4

I have never gotten TRAMP to work. I just use sshfs, which is much easier to use. ("sshfs user@host:~ my_home_at_host") I will also point out that eshell and ansi-term are much better shells for use inside emacs. I used ansi-term for a long time, but gradually weaned myself off bash and into eshell. Now I can write "shell commands" as (loop) invocations. :)

I've had problems using TRAMP with OpenBSD. SSH works and I think FTP does too, but for some reason, TRAMP just hangs. It does seem to connect but then it hangs.

Does TRAMP expect a certain type of shell prompt?

Re: Emacs Power: remote servers and shell commands

#12
post #11
post #4

I have never gotten TRAMP to work. I just use sshfs, which is much easier to use. ("sshfs user@host:~ my_home_at_host") I will also point out that eshell and ansi-term are much better shells for use inside emacs. I used ansi-term for a long time, but gradually weaned myself off bash and into eshell. Now I can write "shell commands" as (loop) invocations. :)

I've had problems using TRAMP with OpenBSD. SSH works and I think FTP does too, but for some reason, TRAMP just hangs. It does seem to connect but then it hangs. Does TRAMP expect a certain type of shell prompt?

It does. The relevant snippet from my .emacs.d:

  ;; For tramp with my bash config, the prompt of which terminates
  ;; in a newline. Tell tramp how to detect the end of my prompt.
  (setq shell-prompt-pattern "
  ")
The value of the shell-prompt-var is a literal newline. (That newline entered, naturally, with a C-q C-j.)
Post reply on HN