You are not logged in.

#1 2011-10-17 01:57:14

Basu
Member
From: Cornell University
Registered: 2006-12-15
Posts: 296
Website

Opening remote files in local emacs client

I've been finding myself doing an increasing amount of remote programming, either on a server or in a VM. Here's what I want to do: I have an SSH connection open to my remote machine and I have a emacs daemon and client running on my local machine. When I'm terminal-ing around on the remote machine I see a file that needs editing. I know I can go back in to Emacs and use Tramp to login again and open up the remote file. But it would be nicer if I could just run a command in my remote terminal that would somehow call out to the local emacsclient instance and have it open the file for editing. Is there a simple or standard way to do this? I wouldn't mind running a shell inside emacs but I haven't a shell implementation that is as feature-complete as an actual terminal.
Thanks.


The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github

Offline

#2 2011-10-17 06:32:36

lunar
Member
Registered: 2010-10-04
Posts: 95

Re: Opening remote files in local emacs client

@Basu:  Sorry to disappoint you, but here is likely neither a standard nor a simple way to accomplish this.

Offline

#3 2011-10-19 01:33:45

Basu
Member
From: Cornell University
Registered: 2006-12-15
Posts: 296
Website

Re: Opening remote files in local emacs client

Hmm I was afraid of that. Maybe I'll just stick to running remote dired in Emacs and opening files from there. BTW is there a specific in-Emacs terminal emulator someone really like? I tried shell-mode but it seems like it doesn't do tab-completion.


The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github

Offline

#4 2011-10-19 03:26:06

sujoy
Member
From: Finland
Registered: 2008-02-08
Posts: 95

Re: Opening remote files in local emacs client

try ansi-term smile

Offline

#5 2011-10-19 03:32:53

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: Opening remote files in local emacs client

Could you use sshfs?  Not exactly what you are looking to do, but may work.


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

Board footer

Powered by FluxBB