News for hackers. Stuff that matters.
Re:EXWM (Emacs X Window Manager) by siraben on Friday November 20, 2020 @06:13AM (#25159333)
I use Emacs every day, I practically live in it. However there are some things that I wish I could have:

- a good terminal mode so I don't need to switch to another terminal, the builtin terminals either lag badly after 10K lines of input or render/behave strangely when used with ncurses programs

- pervasive, non-blocking async, this has gotten better over time especially with language servers being on separate processes, however many common tasks block usage completely, such as upgrading/installing packages

The reason I bring this up is because imagine those points but applied to your window manager. Since Emacs is not multi-threaded, if something inside Emacs freezes your whole X session will become in blocked case you run Exwm. For the same reason, it is a bit more responsive.

Re:EXWM (Emacs X Window Manager) by sulami on Friday November 20, 2020 @06:21AM (#25159386)
> a good terminal mode so I don't need to switch to another terminal, the builtin terminals either lag badly after 10K lines of input or render/behave strangely when used with ncurses programs

I found vterm[1] to be pretty reliable for any kind of "advanced" terminal use. Also much faster when dealing with large amounts of output.

[1]: https://github.com/akermu/emacs-libvterm

Re:EXWM (Emacs X Window Manager) by hpfr on Friday November 20, 2020 @06:21AM (#25159382)
For long output and ncurses, libvterm may suffice https://github.com/akermu/emacs-libvterm. The rest of the time, eshell is very comfortable for me.
Re:EXWM (Emacs X Window Manager) by omnicognate on Friday November 20, 2020 @06:39AM (#25159498)
Agree on the terminals - I've never got on with any of the emacs options. I use mate-terminal within EXWM, so at least my terminals appear in the buffers list.

EXWM does indeed block when emacs is busy. I haven't found it a problem with my usage, but I imagine it could be annoying. Killing emacs ends the X session of course, as it's the window manager, but I rarely need to restart emacs. Useful trick: If emacs really is stuck and Ctrl-G isn't working, switching to a virtual terminal (eg. Ctrl-Alt-F2) and running `killall -SIGUSR2 emacs` will usually make it snap out of it. (I haven't had to do that for months, though.)

Re:EXWM (Emacs X Window Manager) by anoncake on Friday November 20, 2020 @02:28PM (#25163927)
> Killing emacs ends the X session of course, as it's the window manager

If killing Emacs ends the session, that must have a different cause. Killing the WM doesn't usually end the session.

Re:EXWM (Emacs X Window Manager) by vfclists on Friday November 20, 2020 @07:51AM (#25159954)
You can load your long running emacs session in a separate session within EXWM. For some reason the thought never occurs to a lot of EXWM users.

https://tech.toryanderson.com/2020/10/19/emacs-in-emacs-a-tr...

Re:EXWM (Emacs X Window Manager) by generalizations on Friday November 20, 2020 @10:57AM (#25161620)
> Since Emacs is not multi-threaded

Seems weird that no one would have built a multi-threaded emacs by now.