this post was submitted on 16 Oct 2023
1 points (66.7% liked)
Emacs
322 readers
4 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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I have a similar requirement.
If folder1 and folder2 have different project root marker, it's possible to start multiple language servers via
project-vc-extra-root-markers
.But the tricky part is when it's started from folder2, it needs to cd to folder1 before executing the language server.
I achieve this by creating a wrapper script for language server and create a function that sets an environment variable before executing the script and does do complex things in the script.
It'd be nice if there was a better solution without depending on .dir-locals.el and etc, like passing a function for the server program so that I don't have to use a script + environment variable.