7 ms·
TLDR: lsp-mode is the future of emacs.
by dleslie 5y ago
TLDR: lsp-mode is the future of emacs.
- gumby 5y agoOnly for code development, unless I suppose there's an lsp-mode for TeX, for autocorrection when sending mail or writing random documents, etc. Which I suppose is only a matter of time. Edit: typo lsp
- Jtsummers 5y agohttps://github.com/latex-lsp/texlab https://github.com/latex-lsp/texlab No clue how good it is, but it does exist and it's not the only one.
- dleslie 5y ago> unless I suppose there's an lip-mode for TeX https://emacs-lsp.github.io/lsp-mode/page/lsp-latex/ https://emacs-lsp.github.io/lsp-mode/page/lsp-latex/ > for autocorrection when sending mail or writing random documents Complete-at-point is integrated with company-mode, of which I use lsp as a backend to serve suggestions. So ... In a way, yes, I do get spelling suggestions through the same mechanism that lsp works.
- p4bl0 5y agoEven if there is an LSP server for (La)TeX, will it ever be better than AucTeX already is? I think for a languages like Python, LSP servers are interesting but for some other languages the existing tools are already very powerful: OCaml with merlin comes to mind for example. That said, the LSP approach is nice and makes many editors able to profit from each language server :).
- User23 5y agoOr Common Lisp with SLIME or Sly.
- deleted 5y ago[deleted]
- sigjuice 5y agoI just got started on Go and I am quite satisfied with eglot for now.
- anyfoo 5y agoDon't want to be without it anymore.
- metroholografix 5y agoEglot is written by a regular Emacs contributor and maintainer, and as a result is much higher quality code. lsp-mode is written by volunteers on Github without a lot of Emacs Lisp experience (it shows), the code is pretty bad at places, definitely over-engineered and I wouldn't recommend it.
- dleslie 5y agoAnd like Emacs core, eglot is missing important usability features. lsp-mode may not be pretty, but it fulfills the needs of its user-developers. Ie, last that I looked, eglot had no equivalent to lsp-install-server.
- lvass 5y agoStaggering to imagine a developer using emacs would use some random community package corner-case function to install and keep updated an important package written in the same language he programs with.
- spudlyo 5y agoThese are the same developers who want a good out-of-the-box experience. It seems to me that lsp-ui is meant to replicate the features of VSCode, it's not surprising the same developers want to make it easy to install language servers. I'd prefer to install pyright myself in my own node virtualenv rather than having it dropped into ~/.config/emacs/.cache/lsp/npm/pyright, but I understand why autoinstall is an attractive option.
- lvass 5y agoWhat would they do when it inevitably breaks? Google won't bail them out on this one. What if there's a security issue with the server, are they going to have it up to date? Are they going to cry wolf online about how this ancient editor doesn't work for them? I understand some may want those poor souls locked into vscode to see the light, but this isn't the right way to do it. Emacs is great because it's rock-solid and incentivizes good practices, this is the complete opposite.
- antoineMoPa 5y agoReminds me of the time I posted this https://news.ycombinator.com/item?id=29578748 https://news.ycombinator.com/item?id=29578748
- lordgroff 5y agoMaybe (actually, very likely) I'm just an idiot, but I never could get lsp-mode to work with Tramp. With eglot, add the path and off to the races. That alone keeps me on eglot.