Live data from Hacker News

EmacsConf 2021 Call for Proposals

emacsconf.org

61–70 of 86 posts

Re: EmacsConf 2021 Call for Proposals

#61
post #41

Earlier quoted context omitted.

What commands, in particular?

Not OP, but for me adding or deleting a character in the middle of a paragraph in a latex doc hangs for maybe .5s or more, often. This is a fairly new phenomenon, never happened 2+ years ago.

That sounds broken. :(

Good luck getting it fixed, if you are still trying. A basic profiler-start, type, profiler-stop, profiler-report can probably pay the blame easily.

Re: EmacsConf 2021 Call for Proposals

#62
post #47
post #12

LSP-mode has really reinvigorated emacs, at least for me. With flycheck and a language server it's magical. Writing go, it even auto-formats your code and auto-adds imports.

How are you finding the performance of LSP? I dropped Emacs for NeoVim because Emacs would frequently lockup for a second or more due to LSP. NeoVim doesn't have this problem. I would love to return to Emacs someday.

I only use some of the more mature ecosystems (C#, Microsoft's Python language server, golang, etc) but I've always found the performance to be good.

Re: EmacsConf 2021 Call for Proposals

#63
post #21
post #12

LSP-mode has really reinvigorated emacs, at least for me. With flycheck and a language server it's magical. Writing go, it even auto-formats your code and auto-adds imports.

Just for what it's worth, `goimports` has done this for many years: https://pkg.go.dev/golang.org/x/tools/cmd/goimports It's how Emacs handled inputs before there was lsp-mode, and presumably is easy to link into other editors too (it's just an implementation of gofmt that manages imports). I agree: it's an extremely nice feature to have.

Ah, well, I only picked up go very recently so I have no experience writing go outside of the emacs+lsp environment.

Re: EmacsConf 2021 Call for Proposals

#64
post #30

Earlier quoted context omitted.

I'm curious what OS you are in. Unless I am over a slow tramp connection, it isn't common for me to see any lag in the editor. And it is amusing that async through a buffer has always been possible. Just far more common for folks to not go that route on round one.

macOS. Can you give me a hint on how to do the async LSP thing then? I never was actually interested in becoming a master in Emacs. ¯\_(ツ)_/¯

Looks like LSP mode is async [1], but I haven't set it up myself. I mostly use Emacs as an org-mode app.

[1] https://emacs-lsp.github.io/lsp-mode/

Re: EmacsConf 2021 Call for Proposals

#65

Earlier quoted context omitted.

https://i.imgur.com/TFTOj8Z.png This is with the default spacemacs theme. Can you tell which one is the terminal and which one the GUI? https://www.gnu.org/software/emacs/manual/html_node/efaq/Col... Emacs does have the feature you want. Perhaps your setup wasn't supported. Which terminal/os were you on?

Ouch. macOS with iTerm2 and then Alacritty. Now I am even more confused why it doesn't work well for me.

For your possible inspiration: Emacs in iterm2/tmux with 24-bit color, and a bunch of fancy icon sets mapped into the private use area running LSP mode looking a large Python code base[0].

[0]: https://muppetlabs.com/~mikeh/ttyemacs.png

Re: EmacsConf 2021 Call for Proposals

#66
post #50
post #47

Earlier quoted context omitted.

How are you finding the performance of LSP? I dropped Emacs for NeoVim because Emacs would frequently lockup for a second or more due to LSP. NeoVim doesn't have this problem. I would love to return to Emacs someday.

I don't experience any performance problems with lsp-mode, it is very snappy and never gets in my way of going from thought->code. In particular, Go's LSP support is excellent and very fast. I've found these days that the LSP perf is up to the LSP implementation, not Emacs.

Interesting. I'm using Rust on a fairly large project. I guess that takes a hefty chunk of processor time to work with, which causes Emacs to lock up and NeoVim not to..

Re: EmacsConf 2021 Call for Proposals

#67

Earlier quoted context omitted.

I write lots of Elixir at my day job. What’s been tricky for you setting up LSP mode?

For me it's not tricky, even on Spacemacs (where configuring modes is a bit more arcane but once you learn it it's happily easy), it's more like it's laggy. :(

I would recommend checking out the emacs native-comp feature. It may not entirely solve the lag, but in my experience it helps a lot.

Re: EmacsConf 2021 Call for Proposals

#68

Earlier quoted context omitted.

>why it doesn't work well for me Possible reasons: 1. (macOS + inside terminal) isn't a common workflow for emacs contributors, or perhaps for people with that workflow working with 256 colors isn't an issue 2. people who want that workflow who care about having 24 bit colors didn't bother to file a bug report (did you?) Bitter pill, but I hope it helps: as a beginner to an ecosystem, if you are going to be opinionia…

I do run Emacs in GUI mode and it's embarrassingly slow due to various factors I gradually managed to pinpoint: 1. 5K retina display (other Mac owners seem to share the experience) 2. A font with a lot of graphemes (those without emoji seem to render faster) 3. The synchronous nature of LSP; I still don't get it why LSP can't work asynchronously in Emacs -- it does in VIM. Hence me asking about terminal mode where it…

>5K retina display >A font with a lot of graphemes

You might have fun reading the article linked here:

https://news.ycombinator.com/item?id=12830206

>The synchronous nature of LSP; I still don't get it why LSP can't work asynchronously in Emacs

Oh god, that is actually terrible.

> I never even got as far as to find a bug report template

The official way to file a bug report is M-x report-emacs-bug.

>especially Emacs devs

What's that feeling based on?

Re: EmacsConf 2021 Call for Proposals

#69

I’m not a long-time emacs user, but as a new one, my enthusiasm is really growing. Like everyone, I’m finding that I’m in an increasingly disparate set of tools with diverging interface design choices to get my jobs done. The cognitive dissonance that all these different interfaces presents me with feels like it’s getting out of hand, and is growing non-linearly. Emacs is a arcane tool, and is dated in so many ways,…

I've been using emacs for many years now, and I'm sad to say that it has never been slower, despite the hardware getting better. Now it lags like crazy when editing a latex document, no matter the recent version. Something went off the rails in the last year or so, and even Atom is more responsive.

Have you tried profiling? It's working fine with me on both Windows (without WSL) and Linux.

Re: EmacsConf 2021 Call for Proposals

#70

Earlier quoted context omitted.

https://i.imgur.com/TFTOj8Z.png This is with the default spacemacs theme. Can you tell which one is the terminal and which one the GUI? https://www.gnu.org/software/emacs/manual/html_node/efaq/Col... Emacs does have the feature you want. Perhaps your setup wasn't supported. Which terminal/os were you on?

Ouch. macOS with iTerm2 and then Alacritty. Now I am even more confused why it doesn't work well for me.

What is the output of "echo $TERM" and "tput colors"?
Post reply on HN