this post was submitted on 24 Nov 2023
1 points (100.0% liked)
Emacs
311 readers
2 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yes eMacs is running on my local laptop.
If I try running eglot on a local file (on my laptop) all is well - it immediately finds the language server binary and runs it fine.
However, if attempt it on a remote file (opened over tramp) it says it can’t find the binary and prompts me to point it at it. I could do that, but then the language server would start on that same machine and that’s a no go since it’s a shared login machine.
So ideally I’d be able to tell it to use a language server running on my laptop but have been unable to get that to happen.
How would the local language server inspect a file which is on some other machine?
You should start by establishing how that is going to work, and add that information to your question.
oh, that sucks. I did not understand the LSP's requirements:
https://emacs.stackexchange.com/questions/76311/can-i-use-a-local-language-server-for-remote-files
the language servers are pretty simple C/C++ programs. If you have access to gcc/g++ on the target machine, you could try compile/running them in the BG just as a command line prgram. you would not need to `sudo blah install` anything.