ArticleslgStudy

computer science

Emacs

Emacs is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Emacs rather than just read about it. In short: Emacs ( ), originally named EMACS (an acronym for "Editor Macros"), is a family of text editors that are characterized by their extensibility. The manual for the most widely used variant, GNU Emacs, describes it as "the extensible, customizable, self-documenting, real-time display editor".

Emacs — main illustration
Emacs — illustration

Key takeaways

  • Emacs belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Emacs to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Emacs from memory before moving on to harder problems.

Reference excerpt

Emacs ( ), originally named EMACS (an acronym for "Editor Macros"), is a family of text editors that are characterized by their extensibility. The manual for the most widely used variant, GNU Emacs, describes it as "the extensible, customizable, self-documenting, real-time display editor". Development of the first Emacs began in the mid-1970s, and work on GNU Emacs, directly descended from the original, is ongoing; its latest version is 31.1 , released 24 August 2026. Emacs has over 10,000 built-in commands and its user interface allows the user to combine these commands into macros to automate work. Implementations of Emacs typically feature a dialect of the Lisp programming language, allowing users and developers to write new commands and applications for the editor. Extensions have been written to, among other things, manage files, remote access, e-mail, outlines, multimedia, Git integration, RSS feeds, and collaborative editing, as well as implementations of ELIZA, Pong, Conway's Life, Snake, Dunnet, and Tetris. The original EMACS (an extensible, full-screen editor) was developed in 1976 at the MIT Artificial Intelligence Laboratory as a unified set of Editor MACroS (EMACS) for the TECO editor. It was started by Guy L. Steele Jr. as a unification of the divergent TECO macro packages TECMAC and TMACS and was largely completed and extended by Richard M. Stallman, who is credited with naming it “Emacs” (and the “E” abbreviation) and with the core philosophy of real-time display editing and extensibility. The most popular, and most ported, version of Emacs is GNU Emacs, which was created by Richard Stallman for the GNU Project. XEmacs is a variant that branched from GNU Emacs in 1991. GNU Emacs and XEmacs use similar Lisp dialects and are, for the most part, compatible with each other. XEmacs development is currently very slow. GNU Emacs is, along with vi, one of the two main contenders in the traditional editor wars of Unix culture. GNU Emacs is among the oldest free and open source projects still under development.

History

Emacs development began during the 1970s at the MIT AI Lab, whose PDP-6 and PDP-10 computers used the Incompatible Timesharing System (ITS) operating system that featured a default line editor known as Text Editor and Corrector (TECO). Unlike most modern text editors, TECO used separate modes in which the user would either add text, edit existing text, or display the document. One could not place characters directly into a document by typing them into TECO, but would instead enter a character ('i') in the TECO command language telling it to switch to input mode, enter the required characters, during which time the edited text was not displayed on the screen, and finally enter a character (<esc>) to switch the editor back to command mode. (A similar technique was used to allow overtyping.) This behavior is similar to that of the program ed. By the 1970s, TECO was already an old program, initially released in 1962. Richard Stallman visited the Stanford AI Lab in 1976 and saw the lab's E editor, written by Fred Wright. He was impressed by the editor's intuitive WYSIWYG (What You See Is What You Get) behavior, which has since become the default behavior of most modern text editors. He returned to MIT where Carl Mikkelsen, a hacker at the AI Lab, had added to TECO a combined display/editing mode called Control-R that allowed the screen display to be updated each time the user entered a keystroke. Stallman reimplemented this mode to run efficiently and then added a macro feature to the TECO display-editing mode that allowed the user to redefine any keystroke to run a TECO program. E had another feature that TECO lacked: random-access editing. TECO was a page-sequential editor that was designed for editing paper tape on the PDP-1 at a time when computer memory was generally small due to cost, and it was a feature of TECO that allowed editing on only one page at a time sequentially in the order of the pages in the file. Instead of adopting E's approach of structuring the file for page-random access on disk, Stallman modified TECO to handle large buffers more efficiently and changed its file-management method to read, edit, and write the entire file as a single buffer. Almost all modern editors use this approach. The new version of TECO quickly became popular at the AI Lab and soon accumulated a large collection of custom macros whose names often ended in MAC or MACS, which stood for macro. Two years later, Guy Steele took on the project of unifying the diverse macros into a single set. Steele and Stallman's finished implementation included facilities for extending and documenting the new macro set. The resulting system was called EMACS, which stood for Editing MACroS or, alternatively, Emacs with MACroS. Later, the use of EMACS as a recursive acronym for EMACS Makes All Computing Simple became popular; this fit in with the growing use of recursive acronyms for other versions of EMACS. (See below.) Stallman picked the name Emacs "because <E> was not in use as an abbreviation on ITS at the time." An apocryphal hacker koan alleges that the program was named after Emack & Bolio's, a popular Boston ice cream store. The first operational EMACS system existed in late 1976. Stallman saw a problem in too much customization and de facto forking and set certain conditions for usage. He later wrote:

EMACS was distributed on a basis of communal sharing, which means all improvements must be given back to me to be incorporated and distributed. The original Emacs ran only on the PDP-10 running ITS. Its behavior was sufficiently different from that of TECO that it could be considered a text editor in its own right, and it quickly became the standard editing program on ITS. Mike McMahon ported Emacs from ITS to the TENEX and TOPS-20 operating systems. Other contributors to early versions of Emacs include Kent Pitman, Earl Killian, and Eugene Ciccarelli. By 1979, Emacs was the main editor used in MIT's AI lab and its Laboratory for Computer Science.

Implementations

Early implementations

… excerpt ends here. Continue reading the full article.

Illustrations

Emacs: Multics Emacs is an example of early Emacs implementations
Multics Emacs is an example of early Emacs implementations
Emacs: Emacs was started by Guy L. Steele Jr. as a project to unify the many divergent TECO command sets and key bindings at MIT.[2]
Emacs was started by Guy L. Steele Jr. as a project to unify the many divergent TECO command sets and key bindings at MIT.[2]
Emacs: David A. Moon
David A. Moon
Emacs: Emacs' interface was influenced by the design of the space-cadet keyboard, which sought to enable users to type as many different kinds of input as possible.[18]
Emacs' interface was influenced by the design of the space-cadet keyboard, which sought to enable users to type as many different kinds of input as possible.[18]
Emacs: Zmacs, an Emacs for Lisp machines, an evolution of EINE and ZWEI
Zmacs, an Emacs for Lisp machines, an evolution of EINE and ZWEI

Worked examples

Example 1 — a first encounter with Emacs

Start with the simplest possible case. Write down what Emacs claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Emacs before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Emacs ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Emacs

In research
Emacs appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Emacs in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Emacs is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1970s in computing, 1976 software, Emacs, so understanding it makes those chapters shorter.
In everyday life
Look for Emacs outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Emacs” →

How to study Emacs in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Emacs means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Emacs out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Emacs in simple terms?

Emacs ( ), originally named EMACS (an acronym for "Editor Macros"), is a family of text editors that are characterized by their extensibility. The manual for the most widely used variant, GNU Emacs, describes it as "the extensible, customizable, self-documenting, real-time display editor".

Why does Emacs matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Emacs?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Emacs.

Tags

  • 1970s in computing
  • 1976 software
  • Emacs
  • Free file comparison tools
  • Free integrated development environments
  • Free software programmed in C
  • Free software programmed in Lisp
  • Free text editors
  • Hex editors
  • Linux integrated development environments
  • Linux text editors
  • MacOS text editors

Keep exploring