3 ms·
I have a similar emacs setup with cedet, autocomplete, and whatnot, but I have one problem -- things like "evaluate this buffer" don't work when your python env
by parennoob 14y ago
I have a similar emacs setup with cedet, autocomplete, and whatnot, but I have one problem -- things like "evaluate this buffer" don't work when your python environment is on a remote server (due to work constraints I am obliged to do this). Files open fine over tramp, but a lot of things (python-mode, jedi, etc.) don't understand that they are interacting with a remote python shell. Is there any easy way that someone here has found to get around that?
- tikhonj 14y agoIf you have a remote file open with Tramp, you can also get a shell open there with M-x shell. Try doing that, running python in that shell and renaming the shell buffer to Python. It might work :P. If that doesn't work, you might have to find the variable which specifies which buffer has the current running Python process. You should then be able to just change that to a remote shell as above. You can also automate all of this with a bit of elisp. After you've played around with it a bit, ask around on #emacs--I'm sure there are people there both willing and able to help you out.
- parennoob 14y agoNice trick to hoodwink emacs :) It didn't work though. I understand what you're saying in the rest of your comment though -- basically I will have to learn some elisp. Thanks for the help.
- cdjk 14y agoThe way I get around that is running emacs on the remote server in screen/tmux. If there's a better way I'd love to know it, but I haven't found it to be too much of a problem.
- parennoob 14y agoI have tried this, and it works fine...almost :) The only problem I have is that doesn't give you some of the GUI goodness. For example, I find CEDET's code folding incredibly useful when I want to get a bird's eye view of my modules, and the CLI version doesn't seem to support drawing the expandoes. Thanks for the tip though.
- cdjk 14y agoTrue, but "emacs in screen/tmux" has a few other advantages for me - namely that I can leave all my buffers open when I leave the office and easily pick up from home. It's also more pleasant over a slow vpn connection.
- xaritas 14y agoWell, you can put emacs into server mode and then connect with emacsclient, provided you tunnel X. I got this working once but I didn't like using the X Windows version emacs over the native desktop version. Sorry I don't remember the details, but I don't recall it being tricky. My goal was to connect a local emacsclient to a remote emacs server over TCP... if this were possible, I would be fairly ecstatic.