Emacs Quick Keys

All tutorials we have thought to write or that have been compiled that do not explicitly belong in another category.
Post Reply
User avatar
Posts: 1688
Joined: Sun Jul 07, 2002 10:02 am
Location: any given

Emacs Quick Keys

Post by weazy » Fri May 30, 2003 6:09 pm


By default, there are two text editors installed on most Linux systems: vi and Emacs, folks often choose to install pico as well. This tutorial will focus on some important keystrokes in Emacs.

Start emacs:

# emacs [filename]
This will get you into the text-editing screen. You can use the arrow keys to move around in the file, as you would for most text editors. Use [Page Up], [Page Down], [Home], and [End] keys for their respective purposes. There are also certain keystrokes you can use to navigate to text in the file, which include:

* [ESC]f to move forward one word

* [ESC]b to move backward one word

* [ESC]a to move to the beginning of a line press

* [ESC]e to move to the end of a line press

* CTRL]k to delete text from the cursor to the end of the line (This keystroke also stores deleted text in a buffer.)

* CTRL]y to paste the deleted text (known as the "yank" command)

Here are two Emacs sequences:

* CTRL]x, [CTRL]s to save a file

* CTRL]x, [CTRL]c to exit Emacs
--The Devil is in the Details--

Post Reply