201 points · by signa11 · 3y ago · 117 comments
Many computer users run a modified version of the Emacs system every day, without realizing it. Through a peculiar turn of events, the version of Emacs which is widely used today is often called Linux, and many of its users are not aware that it is basically the Emacs system, developed by the Emacs Project.
There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the Emacs operating system: the whole system is basically Emacs with Linux added, or Emacs/Linux. All the so-called Linux distributions are really distributions of Emacs/Linux!
We're running these on refrigerators.
just saw that you're probably making a joke, as i just found this :) https://www.gnu.org/gnu/linux-and-gnu.en.html
"Emacs is a great operating system, lacking only a decent text editor"
That’s deep. Never heard it before, it does make sense. Thanks.
(setq decent t)
(setq great nil)My only requirement for my first personal PC (T1800, 386/sx, 4 MiB, monochrome) was that it could run True Emacs (on Linux) - I could certainly have used this, but `exec emacs` achieves nearly the same.
I think I was taught that 1st year, or perhaps the predecessor. It's was MIS' first year teaching. IIRC, Trine's array started at 1 and there was much debate over the merits of that vs. starting at zero like C but other than that it was a reasonable language for the time.
Now there is an intriguing idea...
"just install the command you need in /bin" is cheating.
https://wiki.gentoo.org/wiki/Custom_Initramfs
Then just drop the kernel image onto your EFI partition, and you have a single-binary Linux/emacs system!
Mounting an encrypted, logical, or otherwise special root partition Providing a minimalistic rescue shell (if something goes wrong) Customize the boot process (e.g., print a welcome message) Load modules necessary to boot (e.g., third party storage drivers) Anything the kernel can't do that's usually handled in user space
So a lot of things which are not emacs.
M-x eshell is a shell implemented completely in Emacs Lisp and integrates with Emacs really nicely
setxkbmap -option ctrl:nocaps
xmodmap -e "keycode 107 = Control_R"
I would occasionally experience some pinky pain until I did this. Losing capslock is mostly inconsequential (you can always use upcase-region).https://www.masteringemacs.org/article/running-shells-in-ema...
(the whole site has lots of information about emacs)
Anyway, one thing this brings to mind is how much of Linux is encapsulated within the kernel itself. This is why distros feel so... similar.
That program has traditionally been `/sbin/init` which launches all background things that need to be running, including your `getty`'s for console login, your `sshd` for SSH login, and your `gdm`'s or what not for GUI login.
Lately it's `systemd` which does the same in a less simple but more flexible/featureful manner.
Here, there is literally no other process running but Emacs - it's your "login shell."
This is the first step in replacing `systemd` with `emacs`, and it will take less space and be easier to use. /s
> Of course, quite a number of syscalls are missing from emacs (not available as elisp primitives), so as it is, it would be hard enough to do EVERYTHING with emacs, but this is a starting point.
This goes double for crufty enterprise apps that use editor-in-the-browser panes that get in the way or lose data.
If you were using tmux, you weren't using emacs for everything!
Emacs for everything also includes replacing terminal with eshell/eat and eventually even frequently curses applications with emacs variations.
sure, VI would be faster, but i would have to use vi.
https://re-ws.pl/2020/11/busybox-based-linux-distro-from-scr...
This is cheating. Why not use also bash when you claim you only use emacs ?