all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: t@fullmeta.me
To: "Manuel Giraud" <manuel@ledu-giraud.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: local emacsclient to remote emacs server
Date: Thu, 24 Mar 2022 10:01:32 +0000	[thread overview]
Message-ID: <3bdba293-340f-4b3f-8d86-8be0d19a9c1c@www.fastmail.com> (raw)
In-Reply-To: <87o81wc289.fsf@elite.giraud>

> Anyway, I think your best bet now is TRAMP. You can do a lot of things
> in TRAMP including running remote commands.

Yes, this is another possible route, and FWIW once you figure out appropriate settings for TRAMP and your remote it mostly works. However, my need is complicated some by the remote environment I envision. So, here goes.

Are there any Emacs TRAMP users connecting to Guix machine here? My use case is this. I would like to be able to use said remote machine for all my dev work. Of course the selling point of Guix is that you can setup reproducible and minimal execution environments for your code and hacking - think Virtualenv pushed to its logical conclusion. So, typically I'd do the following:

1. mkdir myproj
2. drop a manifest.scm or guix.scm script inside that has input packages and sets up services, possibly entire OS definition in system.scm
3. spawn this programmed environment `guix shell -D -f guix.scm` or inside a container `guix shell -c` or if I really need to be close to production or run services spawn entire OS in a container `guix system -c system.scm`
4. start Emacs inside that environment

Now, do you see the problem with TRAMP? TRAMP is essentially an SSH session spawned from local Emacs already running. It ends up talking to your login shell over ssh basically. But we need this Guix induced or potentially even containerized environment. There needs to be some kind of "hop" or additional step after TRAMP establishes an ssh connection that puts its shell in appropriate environment. Is there a way to do that?



  reply	other threads:[~2022-03-24 10:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3bdba293-340f-4b3f-8d86-8be0d19a9c1c@www.fastmail.com \
    --to=t@fullmeta.me \
    --cc=help-gnu-emacs@gnu.org \
    --cc=manuel@ledu-giraud.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.