Latest / CyberSecurity Summary / Mastering Emacs
Transcript
- 0:00Speaker 1: Imagine a piece of software so intensely powerful, like so
- 0:06Speaker 1: capable of rewriting its own reality on the fly that
- 0:09Speaker 1: the author Neal Stephenson famously described it. Well, he didn't
- 0:12Speaker 1: just call it a tool. He called it a thermonuclear
- 0:15Speaker 1: word processor.
- 0:16Speaker 2: Yeah. And the imagery there is just it's incredibly deliberate.
- 0:20Speaker 2: You don't picture a helpful little app.
- 0:22Speaker 1: Right. Yeah.
- 0:23Speaker 2: You picture this massive humming machine sitting on your desk
- 0:26Speaker 2: glowing slightly. radiating this almost dangerous level of untapped potential.
- 0:32Speaker 1: And we aren't talking about some bleeding edge artificial intelligence
- 0:35Speaker 1: suite backed by, you know, a trillion dollar cloud server.
- 0:38Speaker 1: We're looking at a text editor that was actually born
- 0:40Speaker 1: in 1976. Today, we're pulling insights from a book called
- 0:44Speaker 1: Mastering Emacs. which is Mickey Peterson's comprehensive guide to a
- 0:48Speaker 1: piece of software that honestly outclasses almost everything on your
- 0:52Speaker 1: shiny new laptop.
- 0:53Speaker 2: It really does. Emacs is a subject that completely denies
- 0:56Speaker 2: normal categorization. I mean, it's technically an editor, sure.
- 0:58Speaker 1: Technically, yeah.
- 0:59Speaker 2: But for the people who use it, it's a living,
- 1:01Speaker 2: breathing 30-year-old ecosystem. To some, it borders on an actual
- 1:06Speaker 2: philosophy or a religion complete with its own entirely unique
- 1:11Speaker 2: vernacular and a set of fundamental rules that just outright
- 1:15Speaker 2: reject modern computing norms.
- 1:17Speaker 1: Okay, let's unpack this because our mission for this deep
- 1:20Speaker 1: dive is to demystify this ancient behemoth. And I want
- 1:23Speaker 1: to say right up front to you listening, even if
- 1:25Speaker 1: you aren't a programmer, even if you never, ever plan
- 1:29Speaker 1: to install or use Emacs, stick around.
- 1:31Speaker 2: Absolutely.
- 1:32Speaker 1: Because understanding how Emacs works is an absolute masterclass in
- 1:35Speaker 1: how software should work. We're taking a trip into a
- 1:38Speaker 1: parallel universe where you actually control the machine down to
- 1:41Speaker 1: its very atoms rather than the machine dictating your workflow.
- 1:44Speaker 2: And to take that trip, we really have to look
- 1:46Speaker 2: at the architectural foundation, which is completely alien to how
- 1:49Speaker 2: software is built today.
- 1:50Speaker 1: Yeah.
- 1:51Speaker 2: So Emacs began in 1976 when Richard Stallman wrote it
- 1:54Speaker 2: as a set of macros on top of an even older,
- 1:57Speaker 2: incredibly obtuse editor called Tico. But what it devolved into
- 2:00Speaker 2: is something else entirely.
- 2:01Speaker 1: Because modern apps are like finished products, right?
- 2:05Speaker 2: Exactly. They're compiled. When you open Microsoft Word, you are
- 2:08Speaker 2: looking in a locked box.
- 2:10Speaker 1: Yeah.
- 2:10Speaker 2: You know, you can change the font size, but you
- 2:13Speaker 2: cannot change the fundamental mechanics of how the software operates.
- 2:16Speaker 1: But Emacs flips that entirely because of the programming language
- 2:19Speaker 1: it's built on, which is Lisp. And Peterson points out
- 2:23Speaker 1: this wild statistic in the source material. Emacs is actually
- 2:26Speaker 1: about 95% Emacs, Lisp, or Elisp, as they call it,
- 2:32Speaker 1: and only a tiny 5% Is written in C code.
- 2:36Speaker 2: And that ratio, that is the key to everything. That
- 2:38Speaker 2: 5% C core is essentially just the bare metal foundation.
- 2:42Speaker 1: Just the plumbing. Right.
- 2:43Speaker 2: It handles the low level mundane tasks like talking to
- 2:47Speaker 2: your operating systems file system, managing your network access, and
- 2:51Speaker 2: literally just drawing the pixels on your monitor.
- 2:53Speaker 1: Wow. Okay.
- 2:54Speaker 2: The entire rest of the application, that other 95%, is
- 2:57Speaker 2: a massive continuously running LISP interpreter.
- 3:00Speaker 1: So launching Emacs isn't opening an application. You are effectively
- 3:04Speaker 1: booting up a custom operating system running inside your computer's
- 3:07Speaker 1: operating system. Let me try to visualize this. It sounds
- 3:10Speaker 1: like a Lego set, but a highly unusual one. Like
- 3:14Speaker 1: a Lego set where the blocks you build with, the
- 3:16Speaker 1: instruction manual you read, and the box the whole thing
- 3:19Speaker 1: came in are all made out of the exact same
- 3:22Speaker 1: plastic material. Because my understanding of LISP is that data
- 3:25Speaker 1: and code are intrinsically the same thing.
- 3:28Speaker 2: That analogy is great, but it actually only scratches the
- 3:30Speaker 2: surface of what LISP is doing here. Take it a
- 3:33Speaker 2: step further. Imagine you're building a Lego car.
- 3:36Speaker 1: Okay.
- 3:36Speaker 2: In a normal software program, if you want a different engine,
- 3:39Speaker 2: you have to stop the car, go back to the factory,
- 3:42Speaker 2: ask the manufacturer for a new part, and rebuild it.
- 3:45Speaker 1: Because you can't change it while it's running. Right.
- 3:47Speaker 2: But in Emacs, because the code and the data are indistinguishable,
- 3:51Speaker 2: You can reach into the engine while the car is
- 3:52Speaker 2: driving down the highway, melt down a Lego brick, and
- 3:55Speaker 2: remold it into a turbocharger.
- 3:57Speaker 1: That is insane.
- 3:59Speaker 2: You can hook into, replace, or advise arbitrary functions on
- 4:02Speaker 2: the fly without ever closing the program or asking a
- 4:05Speaker 2: developer for permission.
- 4:06Speaker 1: And the examples of this extreme extensibility in the text
- 4:10Speaker 1: are frankly mind-boggling. There's Emacs speak. which is a speech
- 4:14Speaker 1: interface for visually impaired users that's been around for 20 years.
- 4:18Speaker 2: That's a brilliant example.
- 4:19Speaker 1: It doesn't just read text out loud like a normal
- 4:21Speaker 1: screen reader. It dynamically alters the pitch and tone of
- 4:25Speaker 1: the computer's voice based on the structural syntax of the
- 4:28Speaker 1: source code it's reading.
- 4:29Speaker 2: That's incredible.
- 4:30Speaker 1: And then there's ORG mode, which is widely considered the
- 4:33Speaker 1: most powerful text-based organizer and project planner ever created. I mean,
- 4:38Speaker 1: people who don't even write code install Emacs solely to
- 4:41Speaker 1: use ORG mode to run their entire lives.
- 4:43Speaker 2: Oh, absolutely. It's a lifestyle.
- 4:45Speaker 1: But I have to be honest, I'm looking at this
- 4:46Speaker 1: and thinking, isn't this just a recipe for endless procrastination? Like,
- 4:52Speaker 1: if your editor is made of raw, multiple code, doesn't
- 4:55Speaker 1: that just invite people to endlessly tinker with their setup
- 4:58Speaker 1: instead of doing their actual jobs?
- 5:00Speaker 2: Well, Peterson actually tackles that critique head on. He acknowledges
- 5:04Speaker 2: that Emacs is heavily populated by tinkerers. And yes, a
- 5:08Speaker 2: lot of hacking happens at the expense of one's primary job. However,
- 5:12Speaker 2: the underlying philosophy is really about achieving a pure flow state.
- 5:16Speaker 2: Think about it. Every time you alt-tab from your text
- 5:20Speaker 2: editor to your web browser and then to your calendar
- 5:23Speaker 2: and then to your email, you suffer this micro-penalty in
- 5:26Speaker 2: mental friction.
- 5:27Speaker 1: Oh, for sure. The context switching just breaks your concentration.
- 5:31Speaker 2: Precisely. The interfaces change, the keyboard shortcuts change, the visual
- 5:35Speaker 2: themes clash. But if you use that Lego plasticity to
- 5:39Speaker 2: mold Emacs so that it handles your code, your email,
- 5:43Speaker 2: your daily schedule, and your file management.
- 5:45Speaker 1: Wait, it does all of that?
- 5:46Speaker 2: All of it. And they all share the exact same...
- 5:49Speaker 2: customize key bindings and visual language so that friction drops
- 5:52Speaker 2: to zero.
- 5:53Speaker 1: Yeah.
- 5:53Speaker 2: You never leave the environment. You stay in the flow.
- 5:56Speaker 1: Okay. I can see the appeal of that unified environment.
- 5:58Speaker 1: But to get to that flow state, you first have
- 6:00Speaker 1: to survive the culture shock of the language.
- 6:02Speaker 2: Oh, yeah.
- 6:03Speaker 1: Because stepping into Emacs feels like washing ashore on an
- 6:06Speaker 1: island that got cut off from the mainland 50 years ago,
- 6:09Speaker 1: long before modern user interfaces were even a concept.
- 6:12Speaker 2: The terminology is a massive hurdle for newcomers, mostly because
- 6:16Speaker 2: it entirely predates IBM's 1987 Common user access standard.
- 6:21Speaker 1: Right, the CUA standard.
- 6:22Speaker 2: Yeah, CUA is what gave the world the universal concepts
- 6:25Speaker 2: we use today across Windows, Mac, and Linux.
- 6:29Speaker 1: So let's translate some of this island vernacular for the listener,
- 6:31Speaker 1: starting with the concept of a file. In normal software,
- 6:35Speaker 1: you open a file and the software shows you that file.
- 6:38Speaker 1: But in Emacs, files don't open directly. Everything exists inside
- 6:42Speaker 1: a buffer. The rule from the book is... All files
- 6:45Speaker 1: are buffers, but not all buffers are files. Right.
- 6:48Speaker 2: So a buffer is the core data structure you interact with.
- 6:51Speaker 2: It can certainly hold the text of a file you're editing,
- 6:53Speaker 2: but can also be a completely ephemeral scratch pad that
- 6:56Speaker 2: just vanishes when you close it.
- 6:57Speaker 1: Okay.
- 6:58Speaker 2: Or it could be a live two-way mirror into a
- 7:00Speaker 2: background shell process.
- 7:02Speaker 1: Wait, in plain English, you mean like a command prompt
- 7:05Speaker 1: terminal running behind the scenes, and the buffer is just
- 7:07Speaker 1: a window into that process?
- 7:09Speaker 2: Exactly. The buffer captures the output of that terminal and
- 7:12Speaker 2: lets you send text back into it. The buffer is
- 7:14Speaker 2: the environment.
- 7:15Speaker 1: Okay, then we have the visual layout, where Emacs uses
- 7:18Speaker 1: the words windows and frames completely backward from how the
- 7:22Speaker 1: rest of the planet uses them.
- 7:23Speaker 2: Yes, this trips everyone up.
- 7:25Speaker 1: In Emacs... The physical application box on your monitor, the
- 7:28Speaker 1: thing you drag around with your mouse and minimize, is
- 7:31Speaker 1: called a frame.
- 7:32Speaker 2: The physical world metaphor helps clarify this a bit. Think
- 7:35Speaker 2: of a physical window installed on a house. The entire
- 7:39Speaker 2: structure holding it to the wall is the frame.
- 7:42Speaker 1: And if you split that frame into multiple tiled sections,
- 7:45Speaker 1: which programmers do constantly to look at four different buffers
- 7:48Speaker 1: at once, those individual panes of glass inside the frame
- 7:52Speaker 1: are called windows.
- 7:54Speaker 2: It's logically consistent internally, even if it deeply confuses anyone
- 7:57Speaker 2: who grew up using the Microsoft Windows operating system.
- 8:00Speaker 1: Yeah, it's just a little confusing. Then we get to
- 8:02Speaker 1: the cursor, which Emacs refuses to call a cursor. It
- 8:05Speaker 1: is the point. And you don't just click and drag
- 8:08Speaker 1: to highlight text. You drop an invisible beacon called a mark.
- 8:11Speaker 2: Right, the mark.
- 8:12Speaker 1: And the physical space between your point and that invisible
- 8:16Speaker 1: mark is called the region, what we would call a selection.
- 8:20Speaker 1: But all of this just pales in comparison to the clipboard.
- 8:23Speaker 1: The vocabulary here is famously strange. If you want to
- 8:26Speaker 1: cut text, you are killing it. Pasting is yanking, and
- 8:30Speaker 1: copying is saving to the kill ring.
- 8:32Speaker 2: What's fascinating here is Emacs wasn't stubbornly rejecting modernization. It
- 8:37Speaker 2: was just incredibly early to the party. By the time
- 8:39Speaker 2: the world agreed on cut, copy, paste in 1987, Emacs
- 8:43Speaker 2: users already had a full decade of muscle memory built
- 8:45Speaker 2: around killing and yanking.
- 8:47Speaker 1: Right.
- 8:47Speaker 2: Furthermore, adopting the standard clipboard would have been a massive
- 8:50Speaker 2: downgrade in functionality.
- 8:52Speaker 1: Because a standard clipboard holds exactly one item. If you
- 8:55Speaker 1: copy a crucial paragraph, get distracted, and then accidentally hit
- 8:59Speaker 1: copy on a blank space, that crucial paragraph is instantly
- 9:02Speaker 1: overwritten and gone forever. It is the absolute worst feeling.
- 9:06Speaker 2: Emacs actually solved that problem in the 70s with the
- 9:08Speaker 2: kill ring. It is a multi-item clipboard with a memory.
- 9:11Speaker 1: I'm picturing a literal circle in my head. Like, if
- 9:14Speaker 1: I cut a sentence, it goes on the ring. When
- 9:16Speaker 1: I cut a second sentence, does the ring physically spin
- 9:18Speaker 1: to make room? How does the user visualize this?
- 9:22Speaker 2: Think of it somewhat like a Ferris wheel.
- 9:24Speaker 1: A Ferris wheel, okay.
- 9:25Speaker 2: Every time you kill text, you load it into the
- 9:27Speaker 2: bottom cart of the Ferris wheel, pushing the previous carts
- 9:30Speaker 2: up and around. When you want to paste or yank,
- 9:33Speaker 2: you unload the bottom cart. Got it. But if you
- 9:36Speaker 2: realize you actually wanted the text you cut 10 minutes ago,
- 9:39Speaker 2: you can tell Emacs to rotate the wheel, cycling through
- 9:42Speaker 2: your pass cuts until the cart you want is at
- 9:44Speaker 2: the bottom again. Killed text is never truly lost. It's
- 9:47Speaker 2: just pushed further around the structure.
- 9:50Speaker 1: A clipboard with an infinite memory. I love that. And
- 9:53Speaker 1: that structural depth dictates how you actually move around inside
- 9:56Speaker 1: these buffers because navigation in Emacs is treated as an
- 9:59Speaker 1: art form. It is absolutely not about taking your hand
- 10:02Speaker 1: off the keyboard to match the arrow keys or grab
- 10:04Speaker 1: the mouse. Peterson calls this maintaining your physical and mental tempo.
- 10:09Speaker 2: Tempo requires keeping your fingers anchored on the home row
- 10:12Speaker 2: of the keyboard. Reaching for a mouse completely destroys the
- 10:16Speaker 2: physical rhythm of editing.
- 10:18Speaker 1: Here's where it gets really interesting, because it reminds me
- 10:20Speaker 1: of watching a professional musician play a piano. A pianist
- 10:24Speaker 1: doesn't physically pick up their entire arm and move it
- 10:27Speaker 1: to the far edge of the keyboard just to play
- 10:29Speaker 1: one high note. Right.
- 10:30Speaker 2: They stretch.
- 10:31Speaker 1: They stretch, they pivot, and they use chords. Emacs is
- 10:35Speaker 1: built on chords, specifically combinations of modifier keys. Hence the
- 10:40Speaker 1: decades-old joke that Emacs actually stands for Escape Meta-Alt-Control-Shift.
- 10:45Speaker 2: Yeah, the classic joke. And to play those chords without
- 10:48Speaker 2: causing physical damage to your hands, Peterson strongly recommends a
- 10:52Speaker 2: mandatory hardware modification before you even start using it. You
- 10:55Speaker 2: must remap your keyboard so that the cap's lock key
- 10:59Speaker 2: acts as your control key.
- 11:00Speaker 1: Because if you spend eight hours a day curling your
- 11:03Speaker 1: pinky finger down to the bottom left corner of the
- 11:05Speaker 1: keyboard to hit standard control, you will develop the infamous
- 11:09Speaker 1: repetitive strain injury known as Emax Pinky.
- 11:12Speaker 2: Exactly. It's a real thing.
- 11:13Speaker 1: But once caps lock is control, your hands stay locked
- 11:16Speaker 1: in a relaxed home row position. And from there, you
- 11:19Speaker 1: kind of abandon the idea of moving pixel by pixel
- 11:22Speaker 1: or character by character.
- 11:23Speaker 2: Moving by character is painfully inefficient. Emux introduces the ability
- 11:28Speaker 2: to move by syntactic units. You can chord a key
- 11:31Speaker 2: to jump forward by a word or by a paragraph
- 11:34Speaker 2: or by a defun, which is an entire block of
- 11:37Speaker 2: code defining a function.
- 11:39Speaker 1: And it gets wildly granular with things called S expressions,
- 11:42Speaker 1: which are basically balanced parentheses or brackets. Yes. If you
- 11:46Speaker 1: are reading a massive block of nested code, you don't
- 11:49Speaker 1: have to scroll to find where it ends. You just
- 11:51Speaker 1: hold a modifier combo like Ctrl-Meta-F and the point instantly
- 11:55Speaker 1: leaps from the opening bracket to its exact closing partner
- 11:58Speaker 1: no matter how many pages down that is.
- 12:00Speaker 2: And that leap happens because Emux possesses a deep contextual
- 12:04Speaker 2: understanding of the text. A perfect illustration of this is
- 12:06Speaker 2: asymmetrical word movement.
- 12:08Speaker 1: Oh, I loved this part.
- 12:09Speaker 2: If you tell Emux to jump forward by one word,
- 12:12Speaker 2: The point lands at the very end of that word.
- 12:15Speaker 2: But if you tell it to jump backward by one word,
- 12:17Speaker 2: it doesn't just blindly reverse the map. It intelligently skips
- 12:21Speaker 2: backward over empty spaces and punctuation until it finds the
- 12:24Speaker 2: beginning of the actual word characters.
- 12:26Speaker 1: It's literally feeling the shape of the text.
- 12:28Speaker 2: It's moving by meaning, yes. Every environment or major mode
- 12:33Speaker 2: in Emacs comes with a syntax table. This table explicitly
- 12:37Speaker 2: teaches the editor what a word, a sentence, or a
- 12:40Speaker 2: symbol looks like in that specific context.
- 12:43Speaker 1: So it adapts.
- 12:44Speaker 2: Exactly. So if you are writing Python code, Emacs knows
- 12:47Speaker 2: what a Python word looks like. If you're writing a novel,
- 12:50Speaker 2: it knows what an English sentence looks like. You are
- 12:52Speaker 2: moving through structural meaning.
- 12:54Speaker 1: We're back to the Lego blocks. The editor physically understands
- 12:57Speaker 1: the shape of the blocks you're stepping over. That makes
- 12:59Speaker 1: so much sense. But speaking of stepping over things, what
- 13:02Speaker 1: happens when you make a mistake while flying across the keyboard?
- 13:06Speaker 1: Let's talk about time travel, or as Emacs calls it,
- 13:09Speaker 1: the undo ring. Because this concept completely broke my brain
- 13:12Speaker 1: during the reading.
- 13:13Speaker 2: It breaks almost everyone's brain because it utterly rejects the
- 13:17Speaker 2: standard paradigm we've all internalized. In a modern, normal text editor,
- 13:22Speaker 2: your undo history is strictly linear. Imagine a timeline.
- 13:26Speaker 1: Okay.
- 13:26Speaker 2: You type a paragraph, then you hit undo five times,
- 13:30Speaker 2: moving backward on the timeline. If you then type a
- 13:33Speaker 2: single new letter, the timeline branches.
- 13:36Speaker 1: And in a normal app, the alternate timeline, those five
- 13:39Speaker 1: undone steps, is instantly pruned. It's deleted forever. You can
- 13:43Speaker 1: never get it back.
- 13:43Speaker 2: Correct. But Emacs uses a ring, much like the kill ring.
- 13:47Speaker 2: Every single action you take is recorded and pushed onto
- 13:50Speaker 2: the undo ring. And the crucial difference is that includes
- 13:54Speaker 2: the act of undoing itself.
- 13:55Speaker 1: Wait, let me make sure I'm visualizing this correctly. If
- 13:57Speaker 1: I type a word and then I hit undo, Emacs
- 14:00Speaker 1: records user hit undo as a brand new action on
- 14:03Speaker 1: the timeline rather than erasing the past.
- 14:05Speaker 2: That's right. When you are continuously hitting undo, you're just
- 14:08Speaker 2: moving a pointer backward around the ring. But the moment
- 14:11Speaker 2: you break that cycle, say, by moving the cursor or
- 14:14Speaker 2: typing a new letter and then you hit undo again,
- 14:16Speaker 2: Emacs doesn't go further back in time. It doesn't.
- 14:18Speaker 1: No.
- 14:19Speaker 2: It takes your entire previous chain of undoes, treats them
- 14:22Speaker 2: as a block of actions, and adds them to the
- 14:24Speaker 2: ring as new events. To redo something in Emacs, you
- 14:28Speaker 2: literally undo your undoes.
- 14:30Speaker 1: This raises an important question, though. If undoing is just
- 14:33Speaker 1: another action stacked on top of previous actions, how do
- 14:37Speaker 1: you not get lost in a recursive loop? Like if
- 14:40Speaker 1: I'm undoing my undos of my undos, how do I
- 14:43Speaker 1: even know which timeline I'm currently standing in?
- 14:45Speaker 2: It is a tradeoff. It prioritizes absolute data integrity over
- 14:50Speaker 2: a simple user interface. Yes, conceptually, you will get lost
- 14:54Speaker 2: at first. You'll be pulling the thread trying to find
- 14:56Speaker 2: your place.
- 14:57Speaker 1: Yeah, that sounds stressful.
- 14:58Speaker 2: But the philosophy is profoundly forgiving. It mathematically guarantees that
- 15:02Speaker 2: you can never, ever lose your work. In a standard application,
- 15:05Speaker 2: one accidental keystroke after an undo session permanently wipes out
- 15:08Speaker 2: everything in the pruned timeline. Hours of work can vanish.
- 15:12Speaker 2: In Emacs, every single state your document has ever existed
- 15:14Speaker 2: in is preserved somewhere on the ring.
- 15:16Speaker 1: It's an infinite safety net, even if the net is
- 15:18Speaker 1: a bit tangled. But that brings up the massive elephant
- 15:22Speaker 1: in the room. If the clipboard is a Ferris wheel,
- 15:25Speaker 1: the undo history is a recursive loop. The cursor is
- 15:29Speaker 1: a point. And the keyboard requires physical retraining. How does
- 15:34Speaker 1: any human being actually learn to use this massive system
- 15:37Speaker 1: without drowning in manuals?
- 15:39Speaker 2: They survive because Emacs is a fundamentally self-aware piece of software.
- 15:44Speaker 2: Its discoverability is unmatched. You don't minimize Emacs to Google
- 15:48Speaker 2: how to do something. You interrogate Emacs directly.
- 15:50Speaker 1: The described system is a revelation. I can type control
- 15:53Speaker 1: H H K and then press literally any key combination
- 15:57Speaker 1: on my keyboard And a buffer pops up telling me
- 15:59Speaker 1: exactly what that key does, what function it triggers, and
- 16:02Speaker 1: links me directly to the source code of that function.
- 16:04Speaker 2: And if you don't even know what key to press
- 16:05Speaker 2: or the name of the function you want, you use
- 16:07Speaker 2: a tool called Apropos.
- 16:09Speaker 1: Apropos, right?
- 16:10Speaker 2: It allows you to run a regular expression search, meaning
- 16:14Speaker 2: you can search for a pattern, not just an exact word,
- 16:16Speaker 2: through the entire underlying Lisp environment. You can search for
- 16:20Speaker 2: all hidden commands that end in the word, word. And
- 16:23Speaker 2: Emacs will hand you a list of every tool available
- 16:26Speaker 2: to manipulate words.
- 16:27Speaker 1: The search tools inside the actual text are just as robust.
- 16:31Speaker 1: I know Peterson talks about iSearch, IDEO, and Helm, but
- 16:34Speaker 1: I want to look specifically at a tool called Occur
- 16:37Speaker 1: because it perfectly highlights how Emacs leverages everything we've talked
- 16:40Speaker 1: about today.
- 16:40Speaker 2: Oh, Occur is fantastic.
- 16:42Speaker 1: Let's say I have a massive 10,000-line log file, and
- 16:45Speaker 1: I want to find every time the word Error appears.
- 16:49Speaker 1: If I run Occur, it doesn't just highlight the words
- 16:51Speaker 1: in the text.
- 16:52Speaker 2: Does it? No, Occur rips every single line containing the
- 16:55Speaker 2: word Error out of the massive file and compiles them
- 16:58Speaker 2: into a brand new, completely separate buffer.
- 17:01Speaker 1: And because we know from Section 2 that a buffer
- 17:03Speaker 1: is a live, manipulatable data structure, I'm not just looking
- 17:07Speaker 1: at a static list of search results. I can actively
- 17:09Speaker 1: edit the text inside that new occur buffer, and my
- 17:12Speaker 1: changes will automatically reflect back into the original massive log file.
- 17:16Speaker 2: We are back to the Lego blocks again. Your search
- 17:19Speaker 2: results are made of the exact same material as your document.
- 17:22Speaker 1: It is brilliant. And just in case all of this
- 17:24Speaker 1: power goes to your head and you get hopelessly stuck
- 17:26Speaker 1: in a command you don't understand, there is the universal
- 17:29Speaker 1: panic button. Control G.
- 17:31Speaker 2: The lifesaver.
- 17:32Speaker 1: It immediately cancels whatever prompt you are trapped in and
- 17:35Speaker 1: resets the editor to a neutral state. Everyone in life
- 17:38Speaker 1: needs a Control G. But what really struck me comparing
- 17:41Speaker 1: Emacs to modern software is how insulting modern help menus are. Today,
- 17:46Speaker 1: if you click help in an app, It opens a
- 17:49Speaker 1: web browser to a static page on a corporate server
- 17:51Speaker 1: that was probably written three versions ago.
- 17:53Speaker 2: And that static web page doesn't know anything about you
- 17:56Speaker 2: because Emacs is a living list state. When you query
- 17:59Speaker 2: the help system, you aren't reading a generic manual. You
- 18:03Speaker 2: are talking to the software about its current highly personalized
- 18:06Speaker 2: configuration at that exact millisecond.
- 18:09Speaker 1: Wow.
- 18:10Speaker 2: As Peterson states in the text, Emacs is self-documenting because
- 18:13Speaker 2: it is the document. It hides absolutely nothing from the user.
- 18:17Speaker 2: It invites you to inspect it, question it, and rewrite it.
- 18:20Speaker 1: So what does this all mean? We've spent this time
- 18:22Speaker 1: exploring a software ecosystem from the 1970s that demands you
- 18:27Speaker 1: rewire your keyboard, learn a bizarre island vocabulary, and abandon
- 18:31Speaker 1: everything you know about copy-pasting and linear time travel. Why
- 18:35Speaker 1: should you, the listener, care about any of this if
- 18:37Speaker 1: you are perfectly happy with Microsoft Word or Google Docs?
- 18:40Speaker 2: That's a fair question.
- 18:41Speaker 1: Because Emacs is undeniable proof that software does not have
- 18:44Speaker 1: to be a condescending black box. Yes, the learning curve
- 18:48Speaker 1: is a sheer cliff face, but that cliff is the
- 18:51Speaker 1: exact price of admission for a tool that treats you
- 18:53Speaker 1: like an intelligent creator rather than a passive consumer. It
- 18:56Speaker 1: respects your ability to learn.
- 18:58Speaker 2: It really forces a kind of critical thinking that we
- 19:00Speaker 2: desperately need in our digital lives today. Every single day,
- 19:04Speaker 2: we are handed tools, standardized clipboards, linear undo histories, hidden
- 19:09Speaker 2: settings menus, walled corporate gardens. If we blindly accept those
- 19:13Speaker 2: paradigms as the only possible way computing can work, We
- 19:17Speaker 2: artificially limit our own potential. Exploring the mechanisms of the Emacs,
- 19:22Speaker 2: even just as a thought experiment, exposes what modern technology
- 19:26Speaker 2: is actively withholding from us. It reminds us that it
- 19:29Speaker 2: is entirely possible to demand more control from our machines.
- 19:33Speaker 1: Emacs has survived for nearly half a century because it
- 19:35Speaker 1: is infinitely mutable. It is completely open to the imagination
- 19:39Speaker 1: of the person sitting at the keyboard. Think about the
- 19:42Speaker 1: shiny lockdown proprietary apps sitting on your phone right now.
- 19:46Speaker 1: Ask yourself. Will a single one of them still be
- 19:49Speaker 1: actively used fiercely loved, and constantly modified by a passionate
- 19:52Speaker 1: community 50 years from now?
- 19:54Speaker 2: Doubtful.
- 19:55Speaker 1: Probably not. Because maybe the tools that ultimately survive aren't
- 19:58Speaker 1: the ones that are the easiest to pick up on
- 20:00Speaker 1: day one. Maybe the tools that survive are the ones
- 20:02Speaker 1: that give us the power of a thermonuclear word processor
- 20:05Speaker 1: and actually trust us not to blow ourselves up