Movement in Emacs

  • Character-wise movement

    Key bindingPurpose
    C-fMove forward by a character
    C-bMove backward by a character
    C-pMove to previous line
    C-nMove to next line
  • Word-wise movement

    Key bindingPurpose
    M-fMove forward by a word
    M-bMove backward by a word
  • Line-wise movement

    Key bindingPurpose
    C-aMove point to the beginning of the line
    C-eMove point to the end of the line
    M-mMove point to the first non-whitespace character on this line
  • Sexp-wise movement

    Key bindingPurpose
    C-M-fMove forward by a s-expression (sexp)
    C-M-bMove backward by a sexp
  • List-wise movement

    Key bindingPurpose
    C-M-pMove backward to the previous list
    C-M-nMove forward to the next list
    C-M-uMove up out of a list
    C-M-dMove down into a list
  • Sentence-wise movement

    Key bindingPurpose
    M-aMove to the beginning of a sentence
    M-eMove to the end of a sentence
  • Paragraph-wise movement

    Key bindingPurpose
    M-{Move to the beginning of a paragraph
    M-}Move to the end of a paragraph
  • Defun-wise movement

    Key bindingPurpose
    C-M-aMove to the beginning of a defun
    C-M-eMove to the end of a defun
  • Page-wise movement

    Key bindingPurpose
    C-x [Move backward by a page
    C-x ]Move forward by a page
    C-vScroll down a page
    M-vScroll up a page
    C-M-vScroll down the other window
    C-M-S-vScroll up the other window
    M-<Move to the beginning of the buffer
    M->Move to the end of the buffer