Tutorial by Examples

You can quit Emacs with the following keybinding: C-x C-c Where C is the control key. Suspend Emacs You can suspend Emacs using the following keybinding : C-z It gets you back to your shell. If you want to resume your emacs session, enter fg in your terminal.
Re-Save open file under the same filename (Save): C-x C-s Write as filename (Save As): C-x C-w filename The new file name will be prompted in the minibuffer. Create new file or load existing file (New / Load): C-x C-f filename With the mnemonic here for f meaning file. You will...
Often you will get into a state where you have a partially typed command sequence in progress, but you want to abort it. You can abort it with either of the following keybindings: C-g EscEscEsc
"Window" in Emacs refers to what might otherwise be called a "pane" or "screen division". Some window manipulation commands include: Split current window horizontally: C-x 2 Split current window vertically: C-x 3 Select next window: C-x o Close current window: C-x...
Example of a buffer list CRM Buffer Size Mode Filename[/Process] . * .emacs 3294 Emacs-Lisp ~/.emacs % *Help* 101 Help search.c 86055 C ~/cvs/emacs/src/search.c % src 2...
In Emacs, basic search tool (I-Search) allows you to search after or before the location of your cursor. To search for sometext after the location of your cursor (search-forward) hit C-s sometext. If you want to go to the next occurence of sometext, just press C-s again (and so on for the ne...
Set mark in cursor location: C-space or C-@ Kill region (Cut): C-w Copy region to kill ring: M-w or Esc-w Yank (Paste) most recently killed: C-y Yank (Paste) next last killed: M-y or Esc-y Kill killis the command used by Emacs for the deletion of ...
In addition to cursor movements using the arrow keys, Home, End, Page up, and Page down, emacs defines a number of keystrokes that can move the cursor over smaller or larger pieces of text: By character: Backward character: C-b Forward character: C-f By word Backward word: M-b (i.e. Alt b...
To undo something you just did: C-_ or C-x u or C-/
Capitalize word: M-c Convert word to upper case: M-u Convert word to lower case: M-l
Emacs' documentation uses a consistent notation for all key bindings, which is explained here: Key chords A "key chord" is obtained by pressing two or more keys simultaneously. Key chords are denoted by separating all keys by dashes (-). They usually involve modifier keys, which are put ...

Page 1 of 1