all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* local emacsclient to remote emacs server
@ 2022-03-21 16:15 t
  2022-03-21 18:22 ` Eric S Fraga
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: t @ 2022-03-21 16:15 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Emacs users.

Is there a way to connect local emacsclient to the remote emacs server? I am trying to figure out a way to leverage emacs for remote dev work, wherein the remote machine is my development server: files are there, processes run there (TRAMP therefore isn't enough). E.g. could be a containerized dev environment.

Kinda surprised that VSCode "just works" for that sort of thing, but perhaps I shouldn't be. After all it runs in the browser.

Yes, ssh + screen or tmux + terminal emacs kinda work, but feels wrong to have all of these intermediate layers when all I really care about is Emacs. I don't use shells much and when I do I prefer to do it from Emacs.

Ideally I wish I could run X version in all its GUI glory, but XQuartz on OSX can't handle hiDPI or I failed to figure a way to get reasonable resolution. Ditto `xpra`. Linux to Linux it actually works just fine.

Let's go with `caveman` version then. We'll start remote daemon and forward its Unix socket to our local machine:
> ssh -L /tmp/foomacs:/run/user/1000/foomacs remote
> emacs --daemon=foomacs --no-desktop

Local machine (OSX in my case):
> emacsclient -s /tmp/foomacs -t
> *ERROR*: could not open file: /dev/ttys007

Should I have reasonably expected this to work? Or was Emacs client/server not built for such usecase? Remote server running Emacs 28. Tried local emacsclient27 and emacsclient28 - same result.

Thanks



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-03-27  3:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-21 16:15 local emacsclient to remote emacs server t
2022-03-21 18:22 ` Eric S Fraga
2022-03-21 20:31 ` Manuel Giraud
2022-03-22 15:22   ` Robert Pluim
2022-03-22 16:03 ` Felix Dietrich
2022-03-22 23:06   ` t
2022-03-23 11:55 ` Manuel Giraud
2022-03-24 10:01   ` t
2022-03-24 18:46     ` Michael Albinus
2022-03-27  3:58     ` Felix Dietrich
2022-03-24 10:09   ` Robert Pluim
2022-03-24 12:32     ` Robert Pluim

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.