News for hackers. Stuff that matters.
Re:Emacs should become a Wayland compositor by rnd0 on Saturday December 03, 2022 @09:24PM (#33849917)
Well...I mean yeah, sure. Why not?

Hey, let's throw systemd in there while we're at it.

Anything to procrastinate on adding a good editor to it, right?

Re:Emacs should become a Wayland compositor by nequo on Saturday December 03, 2022 @09:27PM (#33849937)
It already has a good editor. It’s called evil mode:

https://github.com/emacs-evil/evil

Re:Emacs should become a Wayland compositor by gnull on Saturday December 03, 2022 @09:29PM (#33849945)
Is Kakoune mode anywhere in sight?
Re:Emacs should become a Wayland compositor by yw3410 on Saturday December 03, 2022 @09:31PM (#33849954)
There's meow-mode and others.
Re:Emacs should become a Wayland compositor by LanternLight83 on Sunday December 04, 2022 @01:58AM (#33851307)
Checking this out, thanks!
Re:Emacs should become a Wayland compositor by sping on Saturday December 03, 2022 @09:32PM (#33849966)
Are there any good Emacs jokes that aren't based on ignorance of Emacs?
Re:Emacs should become a Wayland compositor by ninjha01 on Saturday December 03, 2022 @09:58PM (#33850121)
I could come up with one, but I’m too busy rewriting my config to use a better package manager again.
Re:Emacs should become a Wayland compositor by andreareina on Saturday December 03, 2022 @11:00PM (#33850464)
Oh no have we moved away from straight and use-package already?
Re:Emacs should become a Wayland compositor by imaltont on Sunday December 04, 2022 @05:50AM (#33852438)
Emacs 29 can download packages straight from their source too, so time to move back I guess.
Re:Emacs should become a Wayland compositor by bloopernova on Sunday December 04, 2022 @06:44AM (#33852754)
You need to install yak-shave-mode to make that more efficient.
Re:Emacs should become a Wayland compositor by donio on Saturday December 03, 2022 @10:01PM (#33850134)
Eight Megabytes and Constantly Swapping is pretty funny now that everything else needs several GB of memory.

(But to be fair even a minimal Emacs is about 20MB RSS these days).

Re:Emacs should become a Wayland compositor by mftb on Saturday December 03, 2022 @11:58PM (#33850743)
Hmm, I can't get an RSS that small even with -nw (to use the client TUI), but leaving that aside, on my box just running GNU Emacs normally I get 88MB RSS, so maybe we just need to update the acronym. ;)
Re:Emacs should become a Wayland compositor by donio on Sunday December 04, 2022 @12:42AM (#33850973)
I had to rebuild it with everything turned off in ./configure to get that number.
Re:Emacs should become a Wayland compositor by mftb on Sunday December 04, 2022 @02:18AM (#33851389)
Interesting, I was thinking it was probably a fork. Anyway good to know, ty.
Re:Emacs should become a Wayland compositor by Gordonjcp on Sunday December 04, 2022 @03:55AM (#33851866)
I think it's nuts that the Linux machine I run DaVinci Resolve on today has considerably more RAM than the Windows NT machine I used to use Premiere for editing on 22 years ago had hard disk space.

Back then mine was the "scary" machine in the workshop with its AMD Duron 700 and a whopping 512MB of RAM... and Emacs was just about usable on it!

Re:Emacs should become a Wayland compositor by rnd0 on Saturday December 03, 2022 @10:12PM (#33850204)
Re:Emacs should become a Wayland compositor by rnd0 on Saturday December 03, 2022 @10:13PM (#33850206)
Though technically it's a alpha nerd joke with an emacs punchline.
Re:Emacs should become a Wayland compositor by donio on Saturday December 03, 2022 @10:28PM (#33850292)
And it gets the keybinding wrong so it falls into the ignorance category. But at least we got M-x butterfly thanks to it.
Re:Emacs should become a Wayland compositor by benj111 on Sunday December 04, 2022 @04:34AM (#33852040)
Can you get a keybinding wrong for a command that doesn't exist?
Re:Emacs should become a Wayland compositor by Jorengarenar on Sunday December 04, 2022 @05:47AM (#33852424)
What made you think it does not exist?
Re:Emacs should become a Wayland compositor by benj111 on Sunday December 04, 2022 @08:24AM (#33853504)
Fair enough. What is the keybinding then?
Re:Emacs should become a Wayland compositor by imaltont on Sunday December 04, 2022 @12:03PM (#33855378)
M-x butterfly C-M-c(or RET), made in reference to the xkcd. Been in there since version 23.
Re:Emacs should become a Wayland compositor by benj111 on Monday December 05, 2022 @04:20AM (#33863273)
Surely if it was made in reference to the comic, Emacs got the keybinding wrong?
Re:Emacs should become a Wayland compositor by imaltont on Monday December 05, 2022 @10:56AM (#33867267)
> You can type ‘M-x butterfly C-M-c’ to run it. This is a permuted variation of ‘C-x M-c M-butterfly’ from url ‘https://xkcd.com/378/’.

From the documentation. I don't know why they didn't make it the same, but this is how it is, though maybe because M-butterfly is rather hard to press.

Re:Emacs should become a Wayland compositor by owl57 on Sunday December 04, 2022 @09:58AM (#33854226)
It seems more nuanced. What does it mean that the command doesn't exist? Every serious Emacs user has their own personal bindings, some of those for their own custom commands. But "M-butterfly" suggests more rare hackery, though seemingly trivial for the hypothetical butterfly hacker: they have a "butterfly" key in their keyboard layout.
Re:Emacs should become a Wayland compositor by dicytea on Sunday December 04, 2022 @02:51AM (#33851551)
The fact that the punchline isn't a valid (or at least not a conventional) Emacs keybind still bugs me.
Re:Emacs should become a Wayland compositor by moloch-hai on Sunday December 04, 2022 @12:37PM (#33855733)
M-nerdsniping.

He knew what he was doing.

Re:Emacs should become a Wayland compositor by andreareina on Saturday December 03, 2022 @10:58PM (#33850453)
I'm partial to escape-meta-alt-control-shift
Re:Emacs should become a Wayland compositor by funsevenshirt on Sunday December 04, 2022 @03:04AM (#33851609)
> Are there any good Emacs jokes

No, there aren't.

Re:Emacs should become a Wayland compositor by distantsounds on Sunday December 04, 2022 @09:36AM (#33854033)
the only ignorance is from you, not realizing how much better literally any other text editor is
Re:Emacs should become a Wayland compositor by nequo on Sunday December 04, 2022 @10:02AM (#33854270)
> literally any other text editor

Have you tried literally every other text editor?

I switched from Vim. In Emacs, I can inline previews of LaTeX formulas in the same buffer as the one that I am editing. This is possible because Emacs has a GUI. Vim cannot do this because it runs in the terminal, and it also doesn’t seem possible to do this in gVim.

Meanwhile Emacs implements Vim’s modal editing through evil mode. So for this use case, Emacs seems to be strictly better than Vim.

Re:Emacs should become a Wayland compositor by pvaldes on Sunday December 04, 2022 @05:11PM (#33858507)
Yup, those days of Joe and roses...
Re:Emacs should become a Wayland compositor by jmclnx on Saturday December 03, 2022 @09:55PM (#33850109)
Well I an sure it would be better that all the other existing Wayland Window Managers or Desktops :)
Re:Emacs should become a Wayland compositor by donio on Saturday December 03, 2022 @10:31PM (#33850317)
If done right then yes, it will be. EXWM is the best X11 WM after all. Being able to treat X11 windows as Emacs buffers with the same buffer management mechanisms and keybindings is amazing.
Re:Emacs should become a Wayland compositor by snickerer on Sunday December 04, 2022 @07:04AM (#33852901)
EXWM sounds very cool. Thanks for the hint — I never heard about it.

I use swayWM and Emacs (with frames instead of windows) and configured sway to have Emacs-style key bindings. So I mimicked EXWM behavior without knowing about EXWM.

Re:Emacs should become a Wayland compositor by donio on Sunday December 04, 2022 @11:15AM (#33854922)
It's definitely worth a try. I used StumpWM for 10 years before switching to EXWM about 5 years ago. One great thing about merging the concepts of Emacs buffers and X11 windows is that there is only one set of keybindings you need to worry about (the Emacs ones).
Re:Emacs should become a Wayland compositor by snickerer on Tuesday December 06, 2022 @04:50AM (#33877585)
I would immediately switch to EXWM if it would be Wayland-based.
Re:Emacs should become a Wayland compositor by tmtvl on Sunday December 04, 2022 @05:11AM (#33852246)
The default editor in Emacs is entirely fine, at the very least it isn't a modal editor which is a really outdated paradigm which also doesn't make any sense when most of what you do with a text editor is typing in text.

I used Vim for 5 years, tried various different editors (Atom, Geany, Kate,...), and now for the past 4 years I've been using Emacs. And I'm liking it a lot more than Vim (though that may have something to do with my switching from typing QWERTY to Dvorak).

Re:Emacs should become a Wayland compositor by opan on Sunday December 04, 2022 @08:16AM (#33853427)
I've been perfectly happy with vim binds using both dvorak and workman layouts. Sticking with it from the start when you're slowly relearning to type at all makes it feel normal in a week or two at most. The only meaningful change is hjkl since it's positional in qwerty. The other stuff was all over and based on mnemonics like d for delete. If you can get used to C-n, C-p, C-f, and C-b for emacs movement, hjkl shifting around is not at all harder. There's also the fact that in many cases you probably move around with something like e or w or the search rather than smaller hjkl movements.

Modal editing has ergonomic benefits similar to Sticky Keys, I don't see anything dated about it.

I'm not sure I agree writing is done the most either. Moving around is probably pretty high up there. It does depend on the file of course, but for config files or [video] playlist files you probably do more small edits and movements than writing of pure text. Writing email would be the other extreme.

Re:Emacs should become a Wayland compositor by marcosdumay on Sunday December 04, 2022 @08:32AM (#33853555)
> at the very least it isn't a modal editor which is a really outdated paradigm which also doesn't make any sense when most of what you do with a text editor is typing in text

Hum... As an emacs user, I'm quite comfortable to disagree here.

When in an editor, you want to both type text and run code. Vi only messes up on the emphasis for both cases (due to the legacy of descending from ed), but even emacs has a "run code" mode.