Emacs

Emacs /ˈiːmæks/ or EMACS (Editor MACroS)[3][4][5] is a family of text editors that are characterized by their extensibility.[6] The manual for the most widely used variant,[7] GNU Emacs, describes it as "the extensible, customizable, self-documenting, real-time display editor".[8] Development of the first Emacs began in the mid-1970s, and work on its direct descendant, GNU Emacs, continues actively as of 2019.

Emacs has over 10,000 built-in commands (many of which are macros themselves) 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 that provides a deep extension capability, allowing users and developers to write new commands and applications for the editor. Extensions have been written to manage email, files, outlines, and RSS feeds,[9] as well as clones of ELIZA, Pong, Conway's Life, Snake and Tetris.[10]

The original EMACS was written in 1976 by Carl Mikkelsen, David A. Moon and Guy L. Steele Jr. as a set of Editor MACroS for the TECO editor.[2][3][4][5][11] It was inspired by the ideas of the TECO-macro editors TECMAC and TMACS.[12]

The most popular, and most ported, version of Emacs is GNU Emacs, which was created by Richard Stallman for the GNU Project.[13] 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.

Emacs is, along with vi, one of the two main contenders in the traditional editor wars of Unix culture. Emacs is among the oldest free and open source projects still under development.[14]

Emacs
EmacsIcon
Editing multiple Dired buffers in GNU Emacs
Editing multiple Dired buffers in GNU Emacs
Developer(s)David A. Moon
Guy L. Steele Jr.
Richard M. Stallman
Initial release1976[1][2]
Stable release26.1 (May 28, 2018) [±]
Written inLisp, C
Operating systemCross-platform
TypeText editor
Websitewww.gnu.org/software/emacs/

History

Cpp in GNU emacs
Editing, compiling and executing C++ code from GNU Emacs
Space-cadet
The interface of Emacs was influenced by the design of the Symbolics space-cadet keyboard[15]

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 Tape 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.

Richard Stallman visited the Stanford AI Lab in 1972 or 1974 and saw the lab's E editor, written by Fred Wright.[16] 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.[5]

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 and typically allowed editing on only one page at a time, 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.[17] Steele and Stallman's finished implementation included facilities for extending and documenting the new macro set.[5] The resulting system was called EMACS, which stood for Editing MACroS or, alternatively, E with MACroS. Stallman picked the name Emacs "because <E> was not in use as an abbreviation on ITS at the time."[18] An apocryphal hacker koan alleges that the program was named after Emack & Bolio's, a popular Cambridge ice cream store.[19] The first operational EMACS system existed in late 1976.[20]

Stallman saw a problem in too much customization and de facto forking and set certain conditions for usage. He later wrote:[20]

"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, like TECO, 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.[21]

Other early implementations

In the following years, programmers wrote a variety of Emacs-like editors for other computer systems. These included EINE (EINE Is Not EMACS) and ZWEI[22] (ZWEI Was EINE Initially), which were written for the Lisp machine by Mike McMahon and Daniel Weinreb, and Sine (Sine Is Not Eine),[23] which was written by Owen Theodore Anderson. Weinreb's EINE was the first Emacs written in Lisp. In 1978, Bernard Greenberg wrote Multics Emacs almost entirely in Multics Lisp at Honeywell's Cambridge Information Systems Lab. Multics Emacs was later maintained by Richard Soley, who went on to develop the NILE Emacs-like editor for the NIL Project, and by Barry Margolin. Many versions of Emacs, including GNU Emacs, would later adopt Lisp as an extension language.

James Gosling, who would later invent NeWS and the Java programming language, wrote Gosling Emacs in 1981. The first Emacs-like editor to run on Unix, Gosling Emacs was written in C and used Mocklisp, a language with Lisp-like syntax, as an extension language.

GNU Emacs

Emacs-linux-console
GNU Emacs running in a text console
GNU Emacs W32
GNU Emacs running on Microsoft Windows

Richard Stallman began work on GNU Emacs in 1984 to produce a free software alternative to the proprietary Gosling Emacs. GNU Emacs was initially based on Gosling Emacs, but Stallman's replacement of its Mocklisp interpreter with a true Lisp interpreter required that nearly all of its code be rewritten. This became the first program released by the nascent GNU Project. GNU Emacs is written in C and provides Emacs Lisp, also implemented in C, as an extension language. Version 13, the first public release, was made on March 20, 1985. The first widely distributed version of GNU Emacs was version 15.34, released later in 1985. Early versions of GNU Emacs were numbered as 1.x.x, with the initial digit denoting the version of the C core. The 1 was dropped after version 1.12, as it was thought that the major number would never change, and thus the numbering skipped from 1 to 13.[24] In September 2014, it was announced on the GNU emacs-devel mailing list that GNU Emacs would adopt a rapid release strategy and version numbers would increment more quickly in the future.[25]

GNU Emacs was later ported to Unix. It offered more features than Gosling Emacs, in particular a full-featured Lisp as its extension language, and soon replaced Gosling Emacs as the de facto Unix Emacs editor. Markus Hess exploited a security flaw in GNU Emacs' email subsystem in his 1986 cracking spree in which he gained superuser access to Unix computers.[26]

GNU Emacs uses a layered architecture, with a Turing complete language running on top of a smaller central core. Because about 70% of GNU Emacs is written in the Elisp extension language,[27] and the set of features implemented in Elisp code are automatically present once the C core (which implements the Elisp interpreter, weighing 247 kLOC as of version 24.4) has been ported, porting Emacs to a new platform is considerably less difficult than porting an equivalent project consisting of native code only. Theoretically, only the core must be ported to the new platform; once the core is ported, the portions implemented in the language above take minimal work to bring over.

GNU Emacs development was relatively closed until 1999 and was used as an example of the Cathedral development style in The Cathedral and the Bazaar. The project has since adopted a public development mailing list and anonymous CVS access. Development took place in a single CVS trunk until 2008 and was then switched to the Bazaar DVCS. On November 11, 2014, development was moved to Git.[28]

Richard Stallman has remained the principal maintainer of GNU Emacs, but he has stepped back from the role at times. Stefan Monnier and Chong Yidong were maintainers from 2008-2015.[29][30] John Wiegley was named maintainer in 2015 after a meeting with Stallman at MIT.[31] As of early 2014, GNU Emacs has had 579 individual committers throughout its history.[32]

XEmacs

Xemacs-21.5.b29
XEmacs 21.5 on GNU/Linux

Lucid Emacs, based on an early alpha version of GNU Emacs 19, was developed beginning in 1991 by Jamie Zawinski and others at Lucid Inc. One of the best-known early forks in free software development occurred when the codebases of the two Emacs versions diverged and the separate development teams ceased efforts to merge them back into a single program.[33] Lucid Emacs has since been renamed XEmacs and remains the second most popular variety of Emacs, after GNU Emacs. XEmacs development has slowed, with the most recent stable version 21.4.22 released in January 2009 (while a beta was released in 2013), while GNU Emacs has implemented many formerly XEmacs-only features. This has led some users to proclaim XEmacs' death.[34]

Other forks of GNU Emacs

Other forks, less known than XEmacs, include:

  • Remacs – a port of GNU Emacs to the Rust programming language.[35]
  • Meadow – a Japanese version for Microsoft Windows[36]
  • SXEmacs – Steve Youngs' fork of XEmacs[37]
  • Aquamacs – based on GNU Emacs (Aquamacs 3.2 is based on GNU Emacs version 24 and Aquamacs 3.3 is based on GNU Emacs version 25) which focuses on integrating with the Apple Macintosh user interface

Various Emacs editors

OpenBSD mg Editor Ruby Goodbye World
The mg tiny Emacs-like editor in OpenBSD 5.3. Editing Ruby source code
Screenshot-Zmacs
Zmacs, an Emacs for Lisp machines

In the past, projects aimed at producing small versions of Emacs proliferated. GNU Emacs was initially targeted at computers with a 32-bit flat address space and at least 1 MiB of RAM. Such computers were high end workstations and minicomputers in the 1980s, and this left a need for smaller reimplementations that would run on common personal computer hardware. In more recent times, small clones have been designed to fit on software installation disks.

Other projects aim to implement Emacs in a different dialect of Lisp or a different programming language altogether. Although not all are still actively maintained, these clones include:

  • MicroEMACS, which was originally written by Dave Conroy and further developed by Daniel Lawrence and which exists in many variations.
  • mg, originally called MicroGNUEmacs and, later, mg2a, a public-domain offshoot of MicroEMACS intended to more closely resemble GNU Emacs. Now installed by default on OpenBSD.
  • NotGNU,[38] a small, fast, proprietary freeware implementation for DOS, Win16, Win32 and Linux by Julie Melbin.
  • JOVE (Jonathan's Own Version of Emacs), Jonathan Payne's non-programmable Emacs implementation for UNIX-like systems.
  • MINCE (MINCE Is Not Complete Emacs), a version for CP/M and later DOS, from Mark of the Unicorn. MINCE evolved into Final Word, which eventually became the Borland Sprint word processor.
  • Perfect Writer, a CP/M implementation derived from MINCE that was included circa 1982 as the default word processor with the very earliest releases of the Kaypro II and Kaypro IV. It was later provided with the Kaypro 10 as an alternative to WordStar.
  • Freemacs, a DOS version that uses an extension language based on text macro expansion and fits within the original 64 KiB flat memory limit.
  • Zile. Zile was a recursive acronym for Zile Is Lossy Emacs,[39] but the project was rewritten in Lua and now gives the expansion as Zile Implements Lua Editors. The new Zile still includes an implementation of Emacs in Lua called Zemacs. There is also an implementation of vi called Zi.
  • Zmacs, for the MIT Lisp Machine and its descendants, implemented in ZetaLisp.
  • Climacs, a Zmacs-influenced variant implemented in Common Lisp.
  • QEmacs,[40] a small editor by Fabrice Bellard with UTF-8 capability that can quickly edit files as large as hundreds of MiB in size.
  • Epsilon,[41] an Emacs clone by Lugaru Software. Versions for DOS, Windows, Linux, FreeBSD, Mac OS X and O/S 2 are bundled in the release. It uses a non-Lisp extension language with C syntax and used a very early concurrent command shell buffer implementation under the single-tasking MS-DOS.
  • PceEmacs is the Emacs-based editor for SWI-Prolog.
  • EmACT, a 1986 fork of MicroEmacs by Christian Jullien. EmACT[42] source code is available at SourceForge.
  • Amacs, an Apple II ProDOS version of Emacs implemented in 6502 assembly by Brian Fox.[43][44]
  • Hemlock, originally written in Spice Lisp, then Common Lisp. A part of CMU Common Lisp. Influenced by Zmacs. Later forked by Lucid Common Lisp (as Helix), LispWorks and Clozure CL projects. There is also a Portable Hemlock project, which aims to provide a Hemlock, which runs on several Common Lisp implementations.
  • umacs,[45] an implementation under OS-9

Editors with Emacs emulation

Features

Emacs is primarily a text editor and is designed for manipulating pieces of text, although it is capable of formatting and printing documents like a word processor by interfacing with external programs such as LaTeX, Ghostscript or a web browser. Emacs provides commands to manipulate and differentially display semantic units of text such as words, sentences, paragraphs and source code constructs such as functions. It also features keyboard macros for performing user-defined batches of editing commands.

GNU Emacs is a real-time display editor, as its edits are displayed onscreen as they occur. This is standard behavior for modern text editors but EMACS was among the earliest to implement this functionality instead of having to issue a separate command to insert new edits into the existing text as in vi.

General architecture

Almost all of the functionality in Emacs, including basic editing operations such as the insertion of characters into a document, is achieved through functions written in Emacs Lisp (ELisp), a dialect of the Lisp programming language. The ELisp layer sits atop a stable core of basic services and platform abstraction written in the C programming language. In this Lisp environment, variables and functions can be modified with no need to recompile or restart Emacs.

Emacs operates on data structures called buffers containing text with additional attributes; every buffer maintains its own point (cursor location) and mark (another location, delimiting the selected region together with the point), the name of the file it is visiting (if applicable) and the set of active modes (exactly one major mode and any number of minor modes), which control editor behaviour through variables. Elisp code can be executed interactively through named commands, which can be bound to key presses or accessed by name; some commands evaluate arbitrary Elisp code from buffers (e.g. eval-region or eval-buffer).

Buffers are displayed in windows, which are tiled portions of the terminal screen or the GUI window (called a frame in Emacs terms; multiple frames are possible). Unless configured otherwise, windows include scroll bars, line numbers, a header line at the top (usually displaying the buffer title or filename) and a mode line at the bottom (usually listing the active modes and point position of the buffer).

Multiple windows can be opened onto the same buffer, for example to see different parts of a long text, and multiple buffers can share the same text, for example to take advantage of different major modes in a mixed-language file. The mode can also be changed manually as needed with M-x <mode name>.

Customizability

  • Keystrokes can be recorded into macros and replayed to automate complex, repetitive tasks. This is often done on an ad-hoc basis, with each macro discarded after use, although macros can be saved and invoked later.
  • At startup, Emacs executes an Emacs Lisp script named ~/.emacs (recent versions also look for ~/emacs.el and ~/.emacs.d/init.el;[48] Emacs will execute the first one it finds, ignoring the rest). This personal customization file can be arbitrarily long and complex, but typical content includes:
    • Setting global variables or invoking functions to customize Emacs behaviour, for example (set-default-coding-systems 'utf-8)
    • Key bindings to override standard ones and to add shortcuts for commands that the user finds convenient but don't have a key binding by default. Example: (global-set-key (kbd "C-x C-b") 'ibuffer)
    • Loading, enabling and initializing extensions (Emacs comes with many extensions, but only a few are loaded by default.)
    • Configuring event hooks to run arbitrary code at specific times, for example to automatically recompile source code after saving a buffer (after-save-hook)
    • Executing arbitrary files, usually to split an overly long configuration file into manageable and homogeneous parts (~/.emacs.d/ and ~/elisp/ are traditional locations for these personal scripts)
  • The customize extension allows the user to set configuration properties such as the color scheme interactively, from within Emacs, in a more user-friendly way than by setting variables in .emacs: it offers search, descriptions and help text, multiple choice inputs, reverting to defaults, modification of the running Emacs instance without reloading, and other conveniences similar to the preferences functionality of other programs. The customized values are saved in .emacs (or another designated file) automatically.
  • Themes, affecting the choice of fonts and colours, are defined as elisp files and chosen through the customize extension.

Self-documenting

The first Emacs contained a help library that included documentation for every command, variable and internal function. Because of this, Emacs proponents described the software as self-documenting in that it presents the user with information on its normal features and its current state. Each function includes a documentation string that is displayed to the user on request, a practice that subsequently spread to programming languages including Lisp, Java, Perl, and Python. This help system can take users to the actual code for each function, whether from a built-in library or an added third-party library.

Emacs also has a built-in tutorial. Emacs displays instructions for performing simple editing commands and invoking the tutorial when it is launched with no file to edit. The tutorial is by Stuart Cracraft and Richard Stallman.

Culture

Church of Emacs

Richard Stallman - Preliminares 2013
Richard Stallman as St IGNUcius, a saint in the Church of Emacs

The Church of Emacs, formed by Richard Stallman, is a parody religion created for Emacs users.[49] While it refers to vi as the editor of the beast (vi-vi-vi being 6-6-6 in Roman numerals), it does not oppose the use of vi; rather, it calls it proprietary software anathema. ("Using a free version of vi is not a sin but a penance."[50]) The Church of Emacs has its own newsgroup, alt.religion.emacs,[51] that has posts purporting to support this parody religion. Supporters of vi have created an opposing Cult of vi.

Stallman has jokingly referred to himself as St I GNU cius, a saint in the Church of Emacs.[52]

Emacs pinky

There is folklore attributing a repetitive strain injury colloquially called Emacs pinky to Emacs' strong dependence on modifier keys,[53] although there have not been any studies done to show Emacs causes more such problems than other keyboard-heavy computer programs.

Users have addressed this through various approaches. Some users recommend simply using the two Control keys on typical PC keyboards like Shift keys while touch typing to avoid overly straining the left pinky.[54] Software-side methods include:[55]

  • Customizing the key layout so that the Control key is transposed with the caps lock key.[56] Similar techniques include defining the caps lock key as an additional Control key or transposing the Control and Meta keys.This technique has also been specifically recommended against as contributing to Emacs pinky.
  • Software, such as xwrits or the built-in type-break-mode in Emacs, that reminds the user to take regularly scheduled breaks.
  • Using the ErgoEmacs keybindings (with minor mode ergoemacs-mode).[57][58]
  • Customizing the whole keyboard layout to move statistically frequent Emacs keys to more appropriate places.[59]
  • Packages such as ace-jump-mode[60] or elisp extensions that provide similar functionality of tiered navigation, first asking for a character then replacing occurrences of the character with access keys for cursor movement.
  • evil-mode, an advanced Vim emulation layer.
  • god-mode, which provides an approach similar to vim's with a mode for entering Emacs commands without modifier keys.
  • Using customized key layout offered by Spacemacs, a project where Space key is used as the main key for initiating control sequences. The project also heavily incorporates both evil-mode and god-mode.[61]
  • StickyKeys, which turns key sequences into key combinations.[62]
  • Emacs' built-in viper-mode that allows use of the vi key layout for basic text editing and the Emacs scheme for more advanced features.[63]
  • Giving a dual role to a more-comfortably accessed key such as the Space bar so that it functions as a Control key when pressed in combination with other keys. Ergonomic keyboards or keyboards with a greater number of keys adjacent to the space bar, such as Japanese keyboards, allow thumb control of other modifier keys too like Meta or Shift.[64]
  • Using a limited ergonomic subset of keybindings, and accessing other functionality by typing M-x <command-name>. M-x itself can also be rebound.
  • Driving Emacs through voice input.

Hardware solutions include special keyboards such as Kinesis's Contoured Keyboard, which places the modifier keys where they can easily be operated by the thumb, or the Microsoft Natural keyboard, whose large modifier keys are placed symmetrically on both sides of the keyboard and can be pressed with the palm of the hand.[53] Foot pedals can also be used.

The Emacs pinky is a relatively recent development. The Space-cadet keyboard on which Emacs was developed had oversized Control keys that were adjacent to the space bar and were easy to reach with the thumb.[65]

Terminology

The word emacs is sometimes pluralized as emacsen, by phonetic analogy with boxen and VAXen, referring to different varieties of Emacs.[66]

Emacs in popular culture

In the movie, The Internship (2013), at 01:21:01, Nick Campbell asks, "It occurred to me, why not use Emacs rather than vi as the default editor for Ubuntu?" to which Dana replies, "That's actually a very good thought, Nick."[67]

On the television series, Silicon Valley Season 3, episode 6, Richard asks, "I mean, why not just use Vim over Emacs?", to which Winnie replies, "I do use Vim over Emacs.", to which Richard responds, "Oh, God, help us!"[68]

See also

Notes

  • Ciccarelli, Eugene (1978). An Introduction to the Emacs Editor. Cambridge, Massachusetts: MIT Artificial Intelligence Laboratory. AIM-447. PDF
  • Stallman, Richard M. (1981) [1979]. EMACS: The Extensible, Customizable, Self-Documenting Display Editor. Cambridge Massachusetts: MIT Artificial Intelligence Laboratory. AIM-519A. PDF HTML
  • Stallman, Richard M. (2002). GNU Emacs Manual (15th ed.). GNU Press. ISBN 1-882114-85-X.
  • Stallman, Richard M. (2002). "My Lisp Experiences and the Development of GNU Emacs". Retrieved 2007-02-01.
  • Chassel, Robert J. (2004). An Introduction to Programming in Emacs Lisp. GNU Press. ISBN 1-882114-56-6.
  • Glickstein, Bob (April 1997). Writing GNU Emacs Extensions. O'Reilly & Associates. ISBN 1-56592-261-1.
  • Cameron, Debra; Elliott, James; Loy, Marc; Raymond, Eric; Rosenblatt, Bill (December 2004). Learning GNU Emacs, 3rd Edition. O'Reilly & Associates. ISBN 0-596-00648-9.
  • Finseth, Craig A. (1991). The Craft of Text Editing -or- Emacs for the Modern World. Springer-Verlag & Co. ISBN 978-1-4116-8297-9.
  • Thompson, Adrienne G. (2009). "MACSimizing TECO". Retrieved 2012-02-26.

References

  1. ^ "Emacs Release Dates".
  2. ^ a b Zawinski, Jamie (2005-06-21) [1999]. "Emacs Timeline". Retrieved 11 August 2015.
  3. ^ a b Greenberg, Bernard S. (1979). Multics Emacs: The History, Design and Implementation.
  4. ^ a b "GNU Emacs FAQ".
  5. ^ a b c d Adrienne G. Thompson. "MACSimizing TECO".
  6. ^ "A Tutorial Introduction to GNU Emacs". For an editor to be called "emacs" the main requirement is that it be fully extensible with a real programming language, not just a macro language.
  7. ^ "GNU Emacs Pocket Reference". GNU Emacs is the most popular and widespread of the Emacs family of editors.
  8. ^ "GNU Emacs Manual". GNU Emacs Manual. FSF. Retrieved 24 November 2012.
  9. ^ "Introducing Elfeed, an Emacs Web Feed Reader".
  10. ^ "Amusements". Finally, if you find yourself frustrated, try describing your problems to the famous psychotherapist Eliza. Just do M-x doctor.
  11. ^ Richard Stallman is often credited as another co-creator, but as Daniel Weinreb wrote, "The original (TECO-based) Emacs was created and designed by Guy L. Steele Jr. and David Moon. After they had it working, and it had become established as the standard text editor at the AI lab, Stallman took over its maintenance." Moon himself responded "All true, so far as I can remember. But in all fairness I have to say that Stallman greatly improved Emacs after he “liberated” it from Guy and me." See Weinreb, Dan (November 11, 2007), "Rebuttal to Stallman's Story About The Formation of Symbolics and LMI", Dan Weinreb's blog: software and innovation, archived from the original on January 1, 2009.
  12. ^ "A history of Emacs". XEmacs Internals Manual. 2006-12-11. Retrieved 2007-08-22.
  13. ^ Allombert, Bill. "Debian Popularity Contest". Editors report. Debian. Retrieved 22 November 2011.
  14. ^ "The 10 oldest, significant open-source programs".
  15. ^ Raymond, Eric S.; Cameron, Debra; Rosenblatt, Bill (1996). Learning GNU Emacs, 2nd Edition. Sebastopol, CA: O'Reilly. pp. 408–409. ISBN 1-56592-152-6.
  16. ^ Arthur Samuel (March 1980). "Essential E" (PDF). Retrieved 2011-08-01.
  17. ^ "EMACS vs. vi: The endless geek 'holy war'". "EMACS as such actually started out as a standards project," emails Guy Steele
  18. ^ Stallman, Richard M. (1987). "The EMACS Full-Screen Editor". GARB (Maj 1987). Lysator, Linköping University. pp. 8–11. Retrieved 2007-09-14.
  19. ^ Reynolds, Craig (1992-02-10). Wiseman, David G., ed. "The Emac Bolio Name Koan". David G. Wiseman: Stories of Computer Folklore. A cocky novice once said to Stallman: 'I can guess why the editor is called Emacs, but why is the justifier called Bolio?'. Stallman replied forcefully, Names are but names, Emack & Bolio's is the name of a popular ice cream shop in Boston town. Neither of these men had anything to do with the software.' His question answered, yet unanswered, the novice turned to go, but Stallman called to him, 'Neither Emacs nor Bolio had anything to do with the ice cream shop, either.'
  20. ^ a b Stallman, Richard (March 26, 1981). EMACS: The Extensible, Customizable, Self-Documenting, Display Editor (PDF) (Technical report). MIT AI Lab. AI Memo 519a. Retrieved 2011-01-07.
  21. ^ Leigh Klotz (2007-08-29). "email quoted in "Be Careful What You Joke About"". The New York Times. Retrieved 2010-05-01.
  22. ^ "Comment by ZWEI's author Dan Weinreb". I wrote the second Emacs ever: the Lisp machine implementation, whose spec was "do what Stallman's PDP-10 (original) Emacs does", and then progressed from there. There's just a whole LOT of it. It took me and Mike McMahon endless hours to implement so many commands to make ZWEI/Zmacs.
  23. ^ Owen Theodore Anderson (January 1979). "The Design and Implementation of a Display-Oriented Editor Writing System" (PDF). Retrieved 2012-09-09.
  24. ^ "A History of Emacs".
  25. ^ "emacs-devel msg 00872 (2014-09-29)". In retrospect 24.3 should have been named 25.1 and 24.4 should have been named 26.1. The .N thingy should really be kept only for bug-fix releases and neither of 24.3, 24.4, nor the previously planned 24.5 are bug-fix releases.
  26. ^ Stoll, Clifford (1988). "Stalking the wily hacker". Communications of the ACM. 31 (5): 484–497. doi:10.1145/42411.42412
  27. ^ "GNU Emacs". Open Hub. Retrieved 2017-11-25.
  28. ^ Raymond, Eric (2014-11-12). "New Git repository is up". Retrieved 2017-11-25.
  29. ^ Stallman, Richard (2008-02-22). "Re: Looking for a new Emacs maintainer or team". gnu.org Mailing List. Retrieved 2017-11-25.
  30. ^ McNamara, Paul (2008-02-25). "Stallman on handing over GNU Emacs, its future and the importance of nomenclature". Network World. Retrieved 2017-11-25.
  31. ^ Chirgwin, Richard (2015-11-05). "Emacs gets new maintainer as Richard Stallman signs off". The Register. Retrieved 2017-11-25.
  32. ^ Raymond, Eric (2014-03-29). "Ugliest…repository…conversion…ever". Retrieved 2017-11-25. twenty-nine years of continuous development by no fewer than 579 people
  33. ^ Stephen J., Turnbull. "XEmacs vs. GNU Emacs". Retrieved 2012-10-02.
  34. ^ "XEmacs is Dead. Long Live XEmacs!".
  35. ^ "Remacs". The Remacs github repository. Retrieved 22 February 2017.
  36. ^ FrontPage - Meadow Wiki Archived 2012-02-16 at the Wayback Machine
  37. ^ "SXEmacs Website". Sxemacs.org. 2009-10-11. Retrieved 2009-11-08.
  38. ^ "NotGNU Emacs Editor (Author's Official Download Site)". Notgnu.org. 2004-01-15. Retrieved 2009-11-08.
  39. ^ "Zile home page".
  40. ^ "QEmacs Homepage". Fabrice.bellard.free.fr. Retrieved 2009-11-08.
  41. ^ "Lugaru Software Homepage".
  42. ^ Christian Jullien. (1986). "EmACT on sourceforge". Christian Jullien. Retrieved 31 December 2011.
  43. ^ "AMACS source".
  44. ^ "apple2.org".
  45. ^ Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts. Galactic Industrial Limited. ISBN 0-9519228-0-7.
  46. ^ "Cocoa text system".
  47. ^ "SublemacsPro plugin for Sublime Text".
  48. ^ "Init file".
  49. ^ "Saint IGNUcius - Richard Stallman". Retrieved 29 January 2015.
  50. ^ "The unabridged selective transcript of Richard M Stallman's talk at the ANU". Retrieved 29 January 2015.
  51. ^ alt.religion.emacs newsgroup
  52. ^ "Saint IGNUcius - Richard Stallman". www.stallman.org. Retrieved 27 March 2018.
  53. ^ a b "How To Avoid The Emacs Pinky Problem". Xahlee.org. Retrieved 2009-11-08.
  54. ^ "Emacs: Why You Should Not Swap {Caps Lock, Control} Keys". In touch typing, modifiers comes in pairs, such as ⇧ Shift key. The accepted ergonomic way to press modifier combinations is using one hand to press the modifier key and the other to press the letter key. Using 2 hands avoids single-hand straining its muscle.
  55. ^ "EmacsWiki: Repeated Strain Injury". Retrieved 29 January 2015.
  56. ^ "Moving The Ctrl Key". EmacsWiki. Retrieved 2009-11-08.
  57. ^ "ErgoEmacs Homepage". Retrieved 2018-09-01.
  58. ^ "ErgoEmacs Hostory and development rationale". Retrieved 2018-09-01.
  59. ^ "Keymacs layout".
  60. ^ "EmacsWiki: Ace Jump". Retrieved 29 January 2015.
  61. ^ "Spacemacs". Retrieved 2015-04-20.
  62. ^ BayleShanks (2009-10-07). "Sticky Modifiers". EmacsWiki. Retrieved 2009-11-08.
  63. ^ "Viper Mode". EmacsWiki. Retrieved 2009-11-08.
  64. ^ "At Home Modifier by Evdev". Retrieved 2015-04-14.
  65. ^ "Why Emacs's Keyboard Shortcuts are Painful".
  66. ^ "VAXen". Catb.org. Retrieved 2009-11-08.
  67. ^ "It occurred to me, why not use Emacs - The Internship quotes". www.subzin.com. Retrieved 27 March 2018.
  68. ^ "Silicon Valley - S03E06 Bachmanity Insanity". siliconvalleyism.com. Retrieved 27 March 2018.

External links

AUCTeX

AUCTeX is an extensible package for writing and formatting TeX files in Emacs and XEmacs.

AUCTeX provides syntax highlighting, smart indentation and formatting, previews of mathematics and other elements directly in the editing buffer, smart folding of syntactical elements, macro and environment completion. It also supports the self-documenting .dtx format from the LaTeX project and, to a limited extent, ConTeXt and plain TeX.

AUCTeX, originating from the ‘tex-mode.el’ package of Emacs 16, was created by students from Aalborg University Center (now Aalborg University), hence the name AUCTeX. Lars Peter Fischer wrote the first functions to insert font macros and Danish characters back in 1986. Per Abrahamsen wrote the functions to insert environments and sections, and to indent the text, as well as the outline minor mode in 1987. Kresten Krab Thorup wrote the buffer handling and

debugging functions, the macro completion, and much more, including much improved indentation and text formatting functions, and made the first public release of AUCTeX in 1991.AUCTeX is distributed under the GNU General Public License.

Apel (emacs)

In computer programming, apel (the initialism represents "A Portable Emacs Library") provides support for writing portable code in Emacs Lisp.

XEmacs features a version of apel called apel-xemacs.

Conkeror

Conkeror is a discontinued Mozilla-based web browser designed to be navigated primarily by a computer keyboard. Its design is mainly patterned after the text editor GNU Emacs, with some influence from other programs, including vi.It was originally written by Shawn Betts, the primary author of keyboard-driven ratpoison and Stumpwm tiling window managers. Formerly an extension for the Mozilla Firefox browser, it is now developed for XULRunner as a stand-alone application. Development of the extension version was abandoned in 2007.

Conkeror is released under the same set of free software licenses as Mozilla: the GNU General Public License, the GNU Lesser General Public License, and the Mozilla Public License.

Dired

Dired (for Directory Editor) is a computer program for editing file system directories. It typically runs inside the Emacs text editor as a specialized mode, though standalone versions have been written. Dired was the first file manager, or visual editor of file system information. The first version of Dired was written as a stand-alone program circa 1974 by Stan Kugell at the Stanford Artificial Intelligence Laboratory (SAIL). It was incorporated into GNU Emacs from the earliest versions, and re-implemented in C and C++ on other operating systems.When run in Emacs, dired displays an ls-like file listing in an Emacs buffer. The list can be navigated using standard navigation commands. Several Emacs Lisp scripts have been developed to extend Dired in Emacs. In combination with Tramp it is able to access remote file systems for editing files by means of SSH, FTP, telnet and many other protocols, as well as the capability of accessing local files as another user in the same session. There are also functions that make it possible to rename multiple files via Emacs search and replace capabilities or apply regular expressions for marking (selecting) multiple files. Once marked, files can be operated on in various ways from deleting, to renaming, to executing an external shell command or elisp function on them. By means of the Lisp package dired-x it is also possible to handle existing ls-like directory listings in a virtual Dired mode. These can also be saved again, often using the filename extension dired.

Dunnet (video game)

Dunnet is a surreal, cyberpunk text adventure written by Ron Schnell, based on a game he wrote in 1982. The name is derived from the first three letters of dungeon and the last three letters of Arpanet. It was first written in Maclisp for the DECSYSTEM-20, then ported to Emacs Lisp in 1992. Since 1994 the game has shipped with GNU Emacs; it also has been included with XEmacs.The game has been recommended to writers considering writing interactive fiction.

ERC (software)

ERC is an Internet Relay Chat (IRC) client integrated into GNU Emacs. It is written in Emacs Lisp.

Editor war

Editor war is the common name for the rivalry between users of the Emacs and vi (usually Vim) text editors. The rivalry has become a lasting part of hacker culture and the free software community.

The Emacs vs vi debate was one of the original "holy wars" conducted on Usenet groups, with many flame wars fought between those insisting that their editor of choice is the paragon of editing perfection, and insulting the other, since at least 1985. Related battles have been fought over operating systems, programming languages, version control systems, and even source code indent style.

Emacs Lisp

Emacs Lisp is a dialect of the Lisp programming language used as a scripting language by Emacs (a text editor family most commonly associated with GNU Emacs and XEmacs). It is used for implementing most of the editing functionality built into Emacs, the remainder being written in C, as is the Lisp interpreter. Emacs Lisp is also termed Elisp, although there is also an older, unrelated Lisp dialect with that name.Users of Emacs commonly write Emacs Lisp code to customize and extend Emacs. Other options include the Customize feature that's been in GNU Emacs since version 20. Itself written in Emacs Lisp, Customize provides a set of preferences pages allowing the user to set options and preview their effect in the running Emacs session. When the user saves their changes, Customize simply writes the necessary Emacs Lisp code to the user's config file, which can be set to a special file that only Customize uses, to avoid the possibility of altering the user's own file.

Emacs Lisp can also function as a scripting language, much like the Unix Bourne shell or Perl, by calling Emacs in batch mode. In this way it may be called from the command line or via an executable file, and its editing functions, such as buffers and movement commands are available to the program just as in the normal mode. No user interface is presented when Emacs is started in batch mode; it simply executes the passed-in script and exits, displaying any output from the script.

Eww (web browser)

Emacs Web Wowser (a backronym of "eww") is a web browser written entirely in Emacs Lisp. It became part of GNU Emacs starting with version 24.4. If Emacs is compiled with the suitable image libraries, and is used in a graphical environment (such as under the X Window System), it can render images inline directly into Emacs's display buffer. It requires an Emacs built with libxml2 support. Written by Lars Magne Ingebrigtsen, it was originally developed as part of the Emacs mail reader Gnus, to display HTML-formatted email, but with the addition of HTTP support from Emacs' url.el package it became a fully-fledged browser.

GNU Emacs

GNU Emacs is the most popular and most ported Emacs text editor. It was created by GNU Project founder Richard Stallman. In common with other varieties of Emacs, GNU Emacs is extensible using a Turing complete programming language. GNU Emacs has been called "the most powerful text editor available today". With proper support from the underlying system, GNU Emacs is able to display files in multiple character sets, and has been able to simultaneously display most human languages since at least 1999. Throughout its history, GNU Emacs has been a central component of the GNU project, and a flagship of the free software movement. GNU Emacs is sometimes abbreviated as GNUMACS, especially to differentiate it from other EMACS variants. The tag line for GNU Emacs is "the extensible self-documenting text editor".

GNU TeXmacs

GNU TeXmacs is a scientific word processor and typesetting component of the GNU Project. It was inspired by TeX and GNU Emacs, though it shares no code with those programs. TeXmacs does use TeX fonts. It is written and maintained by Joris van der Hoeven. The program produces structured documents with a WYSIWYG user interface. New document styles can be created by the user. The editor provides high-quality typesetting algorithms and TeX fonts for publishing professional looking documents.

Gnus

Gnus (), or Gnus Network User Services, is a message reader which is part of GNU Emacs. It supports reading and composing both e-mail and news and can also act as an RSS reader, web processor, and directory browser for both local and remote filesystems.

Gnus blurs the distinction between news and e-mail, treating them both as "articles" that come from different sources. News articles are kept separate by group, and e-mail can be split into arbitrary groups, similar to folders in other mail readers. In addition, Gnus is able to use a number of web-based sources as inputs for its groups.

Integrated development environment

An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools, and a debugger. Most of the modern IDEs have intelligent code completion. Some IDEs, such as NetBeans and Eclipse, contain a compiler, interpreter, or both; others, such as SharpDevelop and Lazarus, do not. The boundary between an integrated development environment and other parts of the broader software development environment is not well-defined. Sometimes a version control system, or various tools to simplify the construction of a graphical user interface (GUI), are integrated. Many modern IDEs also have a class browser, an object browser, and a class hierarchy diagram, for use in object-oriented software development.

MULE

The MULtilingual Enhancement (MULE) is computer software which adds extra written language characters to the GNU Emacs text editor and programming environment.

MULE provides facilities to handle text written in many languages (at least 42 character sets, 53 coding sets, 128 input methods, and 58 languages), and multilingual texts containing several languages in the same buffer. This goes beyond the simple facilities offered by Unicode to represent multilingual text. MULE also supports input methods, composing display using fonts in various encodings, changing character syntax and other editing facilities to correspond to local language usage, and more.

MULE was originally based on Nemacs, a version of Emacs extended to handle Japanese, released in 1987. Development stalled, and the effort to incorporate increased language functionality into the main Emacs version stalled, until the fork between Lucid Inc. and the Free Software Foundation (FSF) led to XEmacs, which for several years boasted considerably better support for multiple languages and character sets. This competition reinvigorated development of GNU Emacs's language handling abilities and prompted the inclusion of MULE in version 21 of GNU Emacs.

MULE was written by the researchers Satoru Tomura, Ken'ichi Handa, Mikiko Nishikimi, and Naoto Takahashi, of the National Institute of Advanced Industrial Science and Technology (AIST), which is a part of Ministry of Economy, Trade and Industry (METI), of the government of Japan. This made it impossible for the developers to assign copyright to FSF, as is usually done for contributions to GNU packages.

Multics Emacs

Multics Emacs is an early implementation of the Emacs text editor written in Maclisp by Bernard Greenberg at Honeywell's Cambridge Information Systems Lab. User-supplied extensions were also written in the Lisp programming language. The choice in 1978 of Lisp provided more extensibility than ever before, and has been followed by most subsequent Emacs implementations.

Rcirc

rcirc is an Internet Relay Chat (IRC) client written in Emacs Lisp. It is one of two IRC clients included in GNU Emacs since release 22.1, alongside ERC.Rcirc is "compact, written in a single file of less than 2,500 lines of code". It allocates separate buffers for each server and channel, and includes tab completion and inbound message timestamps. It allows opening new buffers for composing messages, useful for multiline work. All IRC commands are bound to control-c command shortcuts. Sound alerts are available for private messages and for when a user's nick is mentioned in channel.

SLIME

SLIME, the Superior Lisp Interaction Mode for Emacs, is an Emacs mode for developing Common Lisp applications. SLIME originates in an Emacs mode called SLIM written by Eric Marsden. It is developed as an open-source public domain software project by Luke Gorrie and Helmut Eller. Over 100 Lisp developers have contributed code to SLIME since the project was started in 2003. SLIME uses a backend called Swank that is loaded into Common Lisp.

SLIME works with the following Common Lisp implementations:

CMU Common Lisp (CMUCL)

Scieneer Common Lisp

Steel Bank Common Lisp (SBCL)

Clozure CL (former OpenMCL)

LispWorks

Allegro Common Lisp

CLISP

Embeddable Common Lisp (ECL)

Armed Bear Common Lisp (ABCL)Some implementations of other programming languages are using SLIME:

Clojure

JavaScript

Kawa, a Scheme implementation

GNU R

Ruby

MIT Scheme

Scheme48There are also clones of SLIME:

SOLID for OCaml

W3m

w3m is a free software/open source text-based web browser and terminal pager. It has support for tables, frames, SSL connections, color and inline images on suitable terminals. Generally, it renders pages in a form as true to their original layout as possible.

The name "w3m" stands for "WWW wo miru (WWWを見る)", which is Japanese for "to see the WWW" where W3 is a numeronym of WWW.

The original project appears to be inactive, while a currently maintained version exists and is packaged in various GNU/Linux distributions such as Debian and Fedora. This version is available from the repository of Debian developer Tatsuya Kinoshita.

XEmacs

XEmacs is a graphical- and console-based text editor which runs on almost any Unix-like operating system as well as Microsoft Windows. XEmacs is a fork, based on a version of GNU Emacs from the late 1980s. Any user can download, use, and modify XEmacs as free software available under the GNU General Public License version 2 or any later version.

This page is based on a Wikipedia article written by authors (here).
Text is available under the CC BY-SA 3.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.