Subject: Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file

From: Michael Albinus <[email-masked]>
Date: Tue, 28 Feb 2023 09:41:48 +0100

João Távora <[email-masked]> writes:

Hi João,

>     ~/Source/Emacs/emacs/src/emacs -Q                                                 \
>        /ssh:sshuser@localhost#2022:$REMOTE_FILE                                       \
>        --eval '(add-to-list (quote tramp-remote-path) "~/bin")'                       \
>        -f eglot

You must set tramp-remote-path before accessing the remote server. Try this:

     ~/Source/Emacs/emacs/src/emacs -Q -l tramp                                        \
        --eval '(add-to-list (quote tramp-remote-path) "~/bin")'                       \
        /ssh:sshuser@localhost#2022:$REMOTE_FILE                                       \
        -f eglot

> João

Best regards, Michael.