Sunday, 22 March 2009

Emacs - navigation

  • C-f Move forward a character
  • C-b Move backward a character
  • M-f Move forward a word
  • M-b Move backward a word
  • C-n Move to next line
  • C-p Move to previous line
  • C-a Move to beginning of line
  • C-e Move to end of line
  • M-a Move back to beginning of sentence
  • M-e Move forward to end of sentence
  • C-v move forward one screen
  • M-v move backward one screen
  • M-<> go to start/end of file
  • C-M-a: Go to the beginning of the current function or class - This doesn't always work for me
  • C-M-e: Go to the end of the current function or class
  • C-c C-n: Jump to the next statement.
  • C-c C-u: Go up one block
  • C-l : Centre screen on cursor.

No comments: