From 4e7cb5c25688393fe29781418635ed9a4fd8ea6c Mon Sep 17 00:00:00 2001 From: Achyuth Venkatesh Date: Wed, 24 Oct 2018 13:46:28 -0400 Subject: [PATCH 1/3] Details and usage of emacs --- _commands/editors/emacs.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _commands/editors/emacs.md diff --git a/_commands/editors/emacs.md b/_commands/editors/emacs.md new file mode 100644 index 000000000..7f65ebc5f --- /dev/null +++ b/_commands/editors/emacs.md @@ -0,0 +1,16 @@ +--- +--- + +Emacs +----------- +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** +~~~bash +* Open empty document +$ emacs + +* Open new or saved file +$ emacs +~~~ + From 7f54c311c8ecf3bc8a76879be6d95e69d6439a46 Mon Sep 17 00:00:00 2001 From: Achyuth Venkatesh Date: Wed, 24 Oct 2018 13:48:36 -0400 Subject: [PATCH 2/3] Example commands for emacs --- _commands/editors/emacs.md | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/_commands/editors/emacs.md b/_commands/editors/emacs.md index 7f65ebc5f..dd6e23a80 100644 --- a/_commands/editors/emacs.md +++ b/_commands/editors/emacs.md @@ -13,4 +13,44 @@ $ emacs * Open new or saved file $ emacs ~~~ +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. +#### Key +##### `C-` Ctrl Key +##### `A-` Alt Key +  + +#### Essential Commands +##### `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. +  + +#### Helpful Editing Commands +#### Copying/Pasting Text +##### - `C-Space + Arrow Keys` Select text +##### - `C-w` Cut text +##### - `A-w` Copy text +##### - `C-y` Paste text +  + +#### Multiple Windows/Files (Split Screen) +##### - `C-x 2` Split screen horizontally +##### - `C-x 3` Split screen vertically +##### - `C-x o` Switch windows +##### - `C-x 0` Remove window/ Close file +  + +#### For more available commands and help: +##### `(prefix) C-h` + +##### (e.g.) `C-x C-h` (Provides all commands staring with C-x) + +##### or + +##### `C-h` General Help From 6567686332a0d44f9966cea3636e3d808eaa43e5 Mon Sep 17 00:00:00 2001 From: achyuthvenkatesh Date: Wed, 24 Oct 2018 15:38:59 -0400 Subject: [PATCH 3/3] Error fixes with # --- _commands/editors/emacs.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/_commands/editors/emacs.md b/_commands/editors/emacs.md index dd6e23a80..2f1d5c8f2 100644 --- a/_commands/editors/emacs.md +++ b/_commands/editors/emacs.md @@ -16,16 +16,16 @@ $ emacs 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. #### Key -##### `C-` Ctrl Key -##### `A-` Alt Key +`C-` Ctrl Key +`A-` Alt Key   #### Essential Commands -##### `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 +`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. @@ -33,24 +33,24 @@ Once basic navigation through a file is managed, these additional commands help #### Helpful Editing Commands #### Copying/Pasting Text -##### - `C-Space + Arrow Keys` Select text -##### - `C-w` Cut text -##### - `A-w` Copy text -##### - `C-y` Paste text +- `C-Space + Arrow Keys` Select text +- `C-w` Cut text +- `A-w` Copy text +- `C-y` Paste text   #### Multiple Windows/Files (Split Screen) -##### - `C-x 2` Split screen horizontally -##### - `C-x 3` Split screen vertically -##### - `C-x o` Switch windows -##### - `C-x 0` Remove window/ Close file +- `C-x 2` Split screen horizontally +- `C-x 3` Split screen vertically +- `C-x o` Switch windows +- `C-x 0` Remove window/ Close file   #### For more available commands and help: -##### `(prefix) C-h` +`(prefix) C-h` -##### (e.g.) `C-x C-h` (Provides all commands staring with C-x) +(e.g.) `C-x C-h` (Provides all commands staring with C-x) ##### or -##### `C-h` General Help +`C-h` General Help