Terminal-based text editor initially developed in 1976 by Carl Mikkelsen, Richard M. Stallman, and Guy Steele Jr. Known for its powerful keystroke commands and user-customizable interface.
Usage
* Open empty document
$ emacs
* Open new or saved file
$ emacs <file-name>To begin, simply open a file with the emacs command, and the editor will appear in the terminal window. Adding text to a file is similar to most GUI editors (no Insert/Command mode similar to vim): can simply start typing. However, emacs is also known for its powerful navigation and text editing techniques with its keystroke commands. Included below are some essential commands, helpful for basic navigation in the editor.
C- Ctrl Key
A- Alt Key
C-x C-f Open new/existing file
C-x C-s Save file
C-x C-c Quit Emacs
C-x u Undo last change
C-g C-x u Redo last change
Once basic navigation through a file is managed, these additional commands help navigating and editing the file quick and efficiently.
C-Space + Arrow KeysSelect textC-wCut textA-wCopy textC-yPaste text
C-x 2Split screen horizontallyC-x 3Split screen verticallyC-x oSwitch windowsC-x 0Remove window/ Close file
(prefix) C-h
(e.g.) C-x C-h (Provides all commands staring with C-x)
C-h General Help