E-MACS Commands


TERMS:
  • C = Ctrl key.
  • M = Alt " meta " key.
  • Kill = Remove from screen to yank history (aka cut).
  • Yank = Restore killed text (aka paste).
  • START EMACS = emacs < filename >.
    QUIT EMACS = C-x C-c
    SAVE FILE = C-x C-s
    OPEN/CREATE FILE = C-x C-f < filename > or enter to view file list.
    TUTORIAL = C-h t
    CANCEL COMMAND = C-g (if you mis-type a command, this will clear it).
    UNDO = C-x u
    MULTI SCREENS = C-x < # > (EX: C-x 1 = 1 screen).
    MOVE:
  • C-f, C-b = forward/back per character.
  • M-f, M-b = forward/back per word.
  • C-a, C-e = start/end of the current line.
  • M-a, M-e = start/end of each sentence.
  • C-n, C-p = next/previous line.
  • C-v, M-v = next/previous screen.
  • Note: Arrow keys and Page Up/Dn keys move cursor on most PCs.
    DELETE:
  • Backspace (del character before cursor).
  • C-d (del character after cursor).
  • M-Delete (kill word before cursor).
  • M-d (kill word after cursor).
  • YANK:
  • C-space = start mark, or selection.
  • C-w = end mark, and kill selection.
  • C-y = " yank " or restore text.
  • M-y = scroll through yank history.
  • 1