this post was submitted on 21 Sep 2026
32 points (100.0% liked)

linuxmemes

32849 readers
957 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS
     

    This is emacs running inside emacs inside emacs inside emacs.

    Emacs vs vim? Why not both?

    Edit: removed the top image from this body. This is my first post in this community.

    top 8 comments
    sorted by: hot top controversial new old
    [–] bulwark@lemmy.world 3 points 39 minutes ago

    You said "I use vim," and I tremble.

    It's not "vim." It's vi—no, wait, it's Neovim, technically, because the original vim is a closed-source fork of vim, which is a non-GPL free license, which means it's not even properly FOSS, which means your entire identity as a "vim user" rests on a legal technicality that most vim users have never read and would stop using if Bram Moolenaar actually enforced it, which he can't because of the way the vim project split in 2001, but you'd never know that because you peaked at :h i in third-grade sysadmin college.

    Meanwhile, a mere coincidence of shared history lets you claim "modality" as a feature when it's a limitation inherited from 1976 line-buffered editing constraints on a PDP-11. You haven't "mastered the modal workflow," you've spent ten years cargo-culting a workflow that existed because there were no multi-key strokes. Ctrl-X Ctrl-S isn't "hard to learn," it exists because GNU Emacs was built for a different input model in 1978, and you keep reading the fact that Emacs is a fully extensible Lisp environment where the UI itself is a reconfigurable application as "bloat" because your entire editorial philosophy is "my editor should do one thing or I will file a bug report with the universe."

    And you say "but vim starts faster," and I weep. You measure 40ms of saved execve and call it productivity while GNU Emacs sits in daemon mode since boot, already loaded, already aware, waiting for your emacsclient invocation, and you're stuck in a ssh session on a server you don't have root on, and of course vim is there, because vi is on every POSIX system, which is exactly the point of POSIX, which is exactly why GNU Emacs added ess, org-mode, treemacs, magit, and a working calendar to the same binary you called "IDE-adjacent bloat" while I was, what, organizing my life?

    You know what? Fine. Use your vim. Save your file. :wq. Walk away clean. I'll be here, in a major I haven't switched out of since 1994, with C-x C-f on :w q, because the point was never the file.

    Anyway. It's GNU Emacs, not "that one editor."

    [–] tal@lemmy.today 6 points 1 hour ago* (last edited 17 minutes ago)

    Note that you can also use emacs as your window manager, if this is running in Xorg, so your emacs window can be in emacs too.

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

    EXWM (Emacs X Window Manager) is a full-featured tiling X window manager for Emacs built on top of XELB.

    There's some work on a Wayland compositor, but that's not as mature.

    https://codeberg.org/ezemtsov/ewm

    EWM is a modern, fast Linux desktop environment based on Emacs. It is written in Rust, built on Smithay, and runs as a dynamic module inside an Emacs session. Wayland applications appear as Emacs buffers, which means graphical windows can be managed with the same commands, keybindings, and workflows as the rest of Emacs.

    The ultimate goal of EWM is to let power users be bottlenecked by their own thinking, not by the tools they use. Computers should never stand in our way. EWM is built around the idea that window management, application launching, navigation, text input, and system control should be fast, deterministic, programmable, and composable.

    EDIT: I guess technically you could use Wayland, EWM making emacs the compositor, then use xwayland in that, with EXWM making emacs the window manager in that, in which you have an instance of X11 emacs running which itself is running...

    EDIT2: No, wait. I don't know if you can run a window manager directly in xwayland.

    considers

    You could run it in Xephyr in xwayland, though, and you can run a window manager in that. So Wayland->emacs(EWM)->xwayland->Xephyr->emacs(EXWM)->emacs(X11)->emacs(terminal)->emacs(terminal)...

    EDIT3: There have been people who have run emacs on the Linux kernel on bare metal, as the kernel's initd, but it's not very functional like that. Someone would have to go out and reimplement systemd in emacs, and that isn't a thing.

    EDIT4: Oh wait, apparently I am out of date.

    https://github.com/emacs-os/el-init

    el-init

    A statically compiled Emacs init (PID 1) patchset, Emacs Lisp-based service supervisor and core component of Emacs-OS.

    el-init is an Emacs Lisp-based, systemd-inspired init and service-management solution. Whether you are building a full-send Emacs-OS, or simply want to orchestrate your desktop session services from within EXWM, or keep project daemons running while you work, el-init has you covered. Use M-x elinit for the interactive dashboard, or elinitctl from the terminal.

    EDIT5: I think the real test is whether one can play this video in mpv using the libcaca target in terminal emacs using one of emacs' virtual terminal software packages in terminal emacs in X11 emacs in an emacs-window-managed Xephyr X11 display server in a Wayland environment with an emacs-driven compositor managed by emacs via el-init running directly on the Linux kernel.

    EDIT6: Oh, wait. Apparently someone also added KiTTY Graphics Protocol and Sixel support to terminal emacs.

    https://github.com/cashmeredev/kitty-graphics.el

    So theoretically, I suppose you might be able to avoid the libcaca target and having to go through text even in the terminal emacs instances, and have the video playing graphically. You could potentially play that video in mpv (KiTTY Graphics Protocol target) running in terminal emacs running in terminal emacs using KiTTY Graphics Protocol running in X11 emacs being window-managed by emacs (EXWM) running in Xephyr running in xwayland being composited by emacs (EWM) running in Wayland on a system with emacs as initd (el-init) on the Linux kernel on bare metal.

    EDIT7: Bonus points for controlling the mpv instance via emms.

    https://www.gnu.org/software/emms/

    Emms is the Emacs Multimedia System. Emms displays and plays multimedia from within GNU/Emacs using a variety of external players and from different sources.

    Emms can run as a minimalist player and controlled with a handful of M-x Emacs commands, or a fully-fledged, interactive media browser. Emms can display album art, play streaming audio, tag music files, search for lyrics, provide MPD connectivity, control the volume, and more.

    [–] tal@lemmy.today 2 points 1 hour ago (1 children)

    Emacs vs vim? Why not both?

    The goal was to combine all of the ease of use and approachability of vim with all of the ease of use and approachability of emacs.

    [–] moth@anarchist.nexus 1 points 38 minutes ago

    moth wouldn't turn moth's back on anyone who said that with a straight face

    [–] tal@lemmy.today 4 points 1 hour ago

    Emacs vs vim? Why not both?

    You do have evil-mode.

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

    Evil is an extensible vi layer for Emacs. It emulates the main features of Vim, and provides facilities for writing custom extensions.

    [–] FuglyDuck@lemmy.world 4 points 1 hour ago

    If your emac is running… you should probably go catch it.

    [–] Treczoks@lemmy.world 6 points 2 hours ago (1 children)

    Booting Emacs...

    Loading Linux.el...

    [–] provectus@lemmy.ml 1 points 2 hours ago* (last edited 2 hours ago)

    Executing PID 1...

    Loading init.el...