Emacs: Difference between revisions
No edit summary |
move part about GNU Emacs to GNU Emacs section |
||
Line 61: | Line 61: | ||
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.<ref>{{cite journal | last=Stoll | first=Clifford | author-link=Clifford Stoll | title=Stalking the wily hacker | year=1988 | journal=[[Communications of the ACM]] | volume=31 | issue=5 | pages=484–497 | doi=10.1145/42411.42412 | postscript=<!-- Bot inserted parameter. Either remove it; or change its value to "." for the cite to end in a ".", as necessary. -->{{inconsistent citations}} }}</ref> |
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.<ref>{{cite journal | last=Stoll | first=Clifford | author-link=Clifford Stoll | title=Stalking the wily hacker | year=1988 | journal=[[Communications of the ACM]] | volume=31 | issue=5 | pages=484–497 | doi=10.1145/42411.42412 | postscript=<!-- Bot inserted parameter. Either remove it; or change its value to "." for the cite to end in a ".", as necessary. -->{{inconsistent citations}} }}</ref> |
||
⚫ | GNU Emacs uses a layered architecture, with a [[Turing complete]] language running on top of a smaller central core. Because about three-fourths of the stock GNU Emacs distribution (1266 of 1611 k[[Source lines of code|LOC]] as of version 24.4) is written in the Elisp extension language [http://www.ohloh.net/p/emacs/analyses/latest/languages_summary], 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 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 [[Concurrent Versions System|CVS]] access. Development took place in a single CVS trunk until 2008 and was then switched to the Bazaar [[Distributed Version Control System|DVCS]]. On November 11, 2014, development was moved to [[Git (software)|Git]].<ref>{{cite web|url=http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00681.html|title=New Git repository is up.}}</ref> |
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 [[Concurrent Versions System|CVS]] access. Development took place in a single CVS trunk until 2008 and was then switched to the Bazaar [[Distributed Version Control System|DVCS]]. On November 11, 2014, development was moved to [[Git (software)|Git]].<ref>{{cite web|url=http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00681.html|title=New Git repository is up.}}</ref> |
||
Line 139: | Line 141: | ||
* 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 <code>.emacs</code>: it offers search, descriptions and help text, multiple choice inputs, reverting to defaults, modification of the running Emacs instance without reloading, and other conveniences. The customized values are saved in <code>.emacs</code> (or another designated file) automatically. |
* 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 <code>.emacs</code>: it offers search, descriptions and help text, multiple choice inputs, reverting to defaults, modification of the running Emacs instance without reloading, and other conveniences. The customized values are saved in <code>.emacs</code> (or another designated file) automatically. |
||
* ''Themes'', affecting the choice of fonts and colours, are defined as elisp files and chosen through the customize extension. |
* ''Themes'', affecting the choice of fonts and colours, are defined as elisp files and chosen through the customize extension. |
||
=== Portability === |
|||
⚫ | GNU Emacs uses a layered architecture, with a [[Turing complete]] language running on top of a smaller central core. Because about three-fourths of the stock GNU Emacs distribution (1266 of 1611 k[[Source lines of code|LOC]] as of version 24.4) is written in the Elisp extension language [http://www.ohloh.net/p/emacs/analyses/latest/languages_summary], 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 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. |
||
=== Self-documenting === |
=== Self-documenting === |
Revision as of 12:08, 18 August 2016
![]() | This article contains content that is written like an advertisement. (November 2015) |
![]() | |
Developer(s) | Richard Stallman, Guy L. Steele, Jr. |
---|---|
Initial release | 1976[1] |
Written in | Lisp, C |
Operating system | TECO, cross-platform, Unix-like |
Type | Text editor |
Emacs /ˈiːmæks/ and its derivatives are 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".[2] Development of the first Emacs began in the mid-1970s and continues actively as of 2016[update].
Emacs has over 2,000 built-in commands and allows the user to combine these commands into macros to automate work. Emacs Lisp provides a deep extension capability allowing users and developers to write new commands using a dialect of the Lisp programming language. Extensions have been written to manage email, files, outlines, and RSS feeds.[3] Some users find they can do almost all their work from within Emacs, not just editing text.[4]
The original EMACS was written in 1976 by Richard Stallman and Guy L. Steele, Jr. as a set of Editor MACroS for the TECO editor.[1][5][6][7] It was inspired by the ideas of the TECO-macro editors TECMAC and TMACS.[8]
The most popular, and most ported, version of Emacs is GNU Emacs, which was created by Stallman for the GNU Project.[9] XEmacs is a variant that branched from GNU Emacs in 1991. Both GNU Emacs and XEmacs use Emacs Lisp 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. Both are among the oldest application programs still in use.
History
![](http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Colorsyntax.png/220px-Colorsyntax.png)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/5/59/Cpp_in_GNU_emacs.png/220px-Cpp_in_GNU_emacs.png)
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.[10] 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.[7]
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 overly diverse macros into a single set.[11] Steele and Stallman's finished implementation included facilities for extending and documenting the new macro set.[7] 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."[12] An apocryphal hacker koan alleges that the program was named after Emack & Bolio's, a popular Cambridge ice cream store.[13] The first operational EMACS system existed in late 1976.[14]
Stallman saw a problem in too much customization and de facto forking and set certain conditions for usage.[citation needed] He later wrote:[14]
- "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 Computer Science lab.[15]
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[16] (ZWEI Was EINE Initially), which were written for the Lisp machine by Mike McMahon and Daniel Weinreb, and Sine (Sine Is Not Eine),[17] 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
![](http://upload.wikimedia.org/wikipedia/commons/thumb/e/e3/Emacs-nw.png/220px-Emacs-nw.png)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/2/24/GNU_Emacs_W32.png/220px-GNU_Emacs_W32.png)
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.[18] 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.[19]
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.[20]
GNU Emacs uses a layered architecture, with a Turing complete language running on top of a smaller central core. Because about three-fourths of the stock GNU Emacs distribution (1266 of 1611 kLOC as of version 24.4) is written in the Elisp extension language [1], 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 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.[21]
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 have overseen maintenance since 2008.[22] As of early 2014, GNU Emacs has had 579 individual commiters throughout its history.[23]
XEmacs
![](http://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Xemacs-21.5.b29.png/220px-Xemacs-21.5.b29.png)
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.[24] Lucid Emacs has since been renamed XEmacs and remains the second most popular variety of Emacs, after GNU Emacs.[citation needed] 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.[25]
Other forks of GNU Emacs
Other forks, less known than XEmacs, include:
- Meadow – a Japanese version for Microsoft Windows[26]
- SXEmacs – Steve Youngs' fork of XEmacs[27]
- 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
![](http://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/OpenBSD_mg_Editor_Ruby_Goodbye_World.png/220px-OpenBSD_mg_Editor_Ruby_Goodbye_World.png)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Screenshot-Zmacs.png/220px-Screenshot-Zmacs.png)
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 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.[citation needed]
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,[28] 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,[29] 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,[30] a small editor by Fabrice Bellard with UTF-8 capability that can quickly edit files as large as hundreds of MiB in size.
- Epsilon,[31] 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[32] source code is available at SourceForge.
- Amacs, an Apple II ProDOS version of Emacs implemented in 6502 assembly by Brian Fox.[33][34]
- 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.
Editors with Emacs emulation
- Yi, an editor that is written and extensible in Haskell and has an emulation mode for Emacs.
- Joe's Own Editor emulates Emacs keybindings when invoked as jmacs.
- JED has an emulation mode for Emacs.
- Eclipse (IDE) provides a set of Emacs keybindings.
- IntelliJ IDEA provides a set of Emacs keybindings.
- Epsilon (text editor) Defaults to Emacs emulation and supports a vi mode.
- The Cocoa text system uses some of the same terminology and understands many Emacs navigation bindings. This is possible because the native UI uses the Command key (equivalent to Super) instead of the Control key.[35]
- Sublime Text can emulate some of Emacs' behavior with the SublemacsPro plugin.[36]
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 scripts written in a dialect of the Lisp programming language. The dialect used in GNU Emacs is known as Emacs Lisp (ELisp). 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 temporarily modified with no need to recompile or restart Emacs.
Emacs operates on 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
;[37] 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 "\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)
- Setting global variables or invoking functions to customize Emacs behaviour, for example
- 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. 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
![](http://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/Richard_Stallman_-_Preliminares_2013.jpg/170px-Richard_Stallman_-_Preliminares_2013.jpg)
The Church of Emacs, formed by Richard Stallman, is a parody religion created for Emacs users.[38] 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 proprietary software anathema. ("Using a free version of vi is not a sin but a penance."[39]) The Church of Emacs has its own newsgroup, alt.religion.emacs,[40] that has posts purporting to support this parody religion. Supporters of vi have created an opposing Cult of vi, argued by some Emacs users to be an attempt to "ape their betters".
Stallman has jokingly referred to himself as St IGNUcius, a saint in the Church of Emacs.[41]
Emacs pinky
There is folklore attributing repetitive strain injury to Emacs' strong dependence on modified keys called Emacs pinky,[42] although there is no scientific evidence for Emacs causing 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.[43] Software-side methods include:[44]
- Customizing the key layout so that the Control key is transposed with the caps lock key.[45] 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.
- Customizing the key layout with
ergoemacs-mode
(ErgoEmacs keybinding).[46] - Packages such as
ace-jump-mode
[47] 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 whereSpace
key is used as the main key for initiating control sequences. The project also heavily incorporates bothevil-mode
andgod-mode
.[48] - StickyKeys, which turns key sequences into key combinations.[49]
- 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.[50] - 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.[51]
- 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.
- Writing sufficient Elisp to do one's daily tasks without interacting with Emacs.
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.[42] 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.[52]
Terminology
The word emacs is sometimes pluralized as emacsen, by analogy with boxen and VAXen.[53]
See also
- Comparison of text editors
- Conkeror
- GNU TeXmacs
- List of text editors
- List of Unix programs
- Integrated development environment
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
- ^ a b Zawinski, Jamie (2005-06-21) [1999]. "Emacs Timeline". Retrieved 11 August 2015.
- ^ "GNU Emacs Manual". GNU Emacs Manual. FSF. Retrieved 24 November 2012.
- ^ "Introducing Elfeed, an Emacs Web Feed Reader".
- ^ "A Guided Tour of Emacs".
Some users find that they can do almost all of their work from within Emacs.
- ^ Greenberg, Bernard S. (1979). Multics Emacs: The History, Design and Implementation.
- ^ "GNU Emacs FAQ".
- ^ a b c Adrienne G. Thompson. "MACSimizing TECO".
- ^ "A history of Emacs". XEmacs Internals Manual. 2006-12-11. Retrieved 2007-08-22.
- ^ Allombert, Bill. "Debian Popularity Contest". Editors report. Debian. Retrieved 22 November 2011.
- ^ Arthur Samuel (March 1980). "Essential E" (PDF). Retrieved 2011-08-01.
- ^ "EMACS vs. vi: The endless geek 'holy war'".
"EMACS as such actually started out as a standards project," emails Guy Steele
- ^ Stallman, Richard M. (1987). "The EMACS Full-Screen Editor". GARB. No. Maj 1987. Lysator, Linköping University. pp. 8–11. Retrieved 2007-09-14.
{{cite news}}
: CS1 maint: postscript (link) - ^ 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.'
- ^ 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.
- ^ Leigh Klotz (2007-08-29). "email quoted in "Be Careful What You Joke About"". The New York Times. Retrieved 2010-05-01.
- ^ "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.
- ^ Owen Theodore Anderson (January 1979). "The Design and Implementation of a Display-Oriented Editor Writing System" (PDF). Retrieved 2012-09-09.
- ^ "A History of Emacs".
- ^ "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.
- ^ Stoll, Clifford (1988). "Stalking the wily hacker". Communications of the ACM. 31 (5): 484–497. doi:10.1145/42411.42412Template:Inconsistent citations
{{cite journal}}
: CS1 maint: postscript (link) - ^ "New Git repository is up".
- ^ "Re: Looking for a new Emacs maintainer or team". gnu.org Mailing List. Retrieved 2008-02-23.; see also "Stallman on handing over GNU Emacs, its future and the importance of nomenclature"
- ^ "Ugliest…repository…conversion…ever".
twenty-nine years of continuous development by no fewer than 579 people
- ^ Stephen J., Turnbull. "XEmacs vs. GNU Emacs". Retrieved 2012-10-02.
- ^ "XEmacs is Dead. Long Live XEmacs!".
- ^ FrontPage - Meadow Wiki
- ^ "SXEmacs Website". Sxemacs.org. 2009-10-11. Retrieved 2009-11-08.
- ^ "NotGNU Emacs Editor (Author's Official Download Site)". Notgnu.org. 2004-01-15. Retrieved 2009-11-08.
- ^ "Zile home page".
- ^ "QEmacs Homepage". Fabrice.bellard.free.fr. Retrieved 2009-11-08.
- ^ "Lugaru Software Homepage".
- ^ Christian Jullien. (1986). "EmACT on sourceforge". Christian Jullien. Retrieved 31 December 2011.
- ^ "AMACS source".
- ^ "apple2.org".
- ^ "Cocoa text system".
- ^ "SublemacsPro plugin for Sublime Text".
- ^ "Init file".
- ^ "Saint IGNUcius - Richard Stallman". Retrieved 29 January 2015.
- ^ "The unabridged selective transcript of Richard M Stallman's talk at the ANU". Retrieved 29 January 2015.
- ^ alt.religion.emacs newsgroup
- ^ Saint IGNUcius - Richard Stallman
- ^ a b "How To Avoid The Emacs Pinky Problem". Xahlee.org. Retrieved 2009-11-08.
- ^ "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.
- ^ "EmacsWiki: Repeated Strain Injury". Retrieved 29 January 2015.
- ^ "Moving The Ctrl Key". EmacsWiki. Retrieved 2009-11-08.
- ^ "ErgoEmacs". Retrieved 2014-04-28.
- ^ "EmacsWiki: Ace Jump". Retrieved 29 January 2015.
- ^ "Spacemacs". Retrieved 2015-04-20.
- ^ BayleShanks (2009-10-07). "Sticky Modifiers". EmacsWiki. Retrieved 2009-11-08.
- ^ "Viper Mode". EmacsWiki. Retrieved 2009-11-08.
- ^ "At Home Modifier by Evdev". Retrieved 2015-04-14.
- ^ "Why Emacs's Keyboard Shortcuts are Painful".
- ^ "VAXen". Catb.org. Retrieved 2009-11-08.
External links
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/34px-Wikiquote-logo.svg.png)
![](http://upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/40px-Wikibooks-logo-en-noslogan.svg.png)
- Emacs
- Free file comparison tools
- Free integrated development environments
- Free software programmed in C
- Free software programmed in Lisp
- Free text editors
- GNU Project software
- Hex editors
- Linux integrated development environments
- Linux text editors
- OpenVMS text editors
- OS X text editors
- Text editors
- Unix text editors
- Windows text editors