On my laptop, I'm using eglot (sometimes lsp-mode) with pyright language server.

But Now I'm trying to write some python code on Raspberry Pi (using ssh/TRAMP, in local network, from my laptop). I currently installed pyright with pip3 install pyright on RPi, and when M-x eglot executed on tramp buffer it says:

[eglot] Sorry, couldn't guess for `python-mode'!
Enter program to execute (or <host>:<port>):

1 Answer 1


eglot doesn't need any special config to work with tramp. You need to make tramp can find your remote pyright, maybe via:

(add-to-list 'tramp-remote-path 'tramp-own-remote-path)

For lsp-mode, you can refer to this PR.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.