Essential emacs commands

====================================================
FILE AND BUFFERS
====================================================
  C-x C-f      Find or Create file
  C-x C-s      Save file
  C-x C-w      Write to new filename (it prompts you)
  C-x C-b      Lists buffers
  C-x C-c      Quit emacs

====================================================
COMMAND RELATED
====================================================
  ESC ESC ESC  Cancelling whatever I am doing
  C-g          Abort command (like Ctrl C)
  C-_ or C-x u Undo/Redo (toggles)
  C-z 	      Suspend (to return, type %emacs)
  A-x	      Run any command

====================================================
CUTTING COPYING AND PASTING
====================================================
  C-k          Cut text from cursor to end of line
  C-y          Paste text
  C-space      Mark the start for the block
  C-w	      Mark the end of the block and CUT it
  A-w	      Mark the end of the block and COPY it

====================================================
FIND REPLACE a STRING
====================================================
  A-x replace-string ENTER	String replace from cursor to end of buffer
  A-x query-replace ENTER	String replace with querying
  A-%			Search and replace (press y when prompted)
  A-x grep ENTER 		Perform a 'grep' search

====================================================
SCROLLING AND WINDOWS
====================================================
  C-x 1	      One window on current buffer
  C-x 2        Split window horizontally
  C-x 3        Split window vertically
  C-x o        Shift between windows
  C-x 0        Close current window
  C-v          Go forward one screen
  A-v          Go backward one screen

====================================================
CURSOR MOVEMENT
====================================================
  A-v	Beginning of buffer
  C-v	End of buffer
  C-a	Beginning of line
  C-e	End of line
  A-f	Forward one word
  A-b	Back one word

====================================================
MORE
====================================================
  A-x what-line ENTER	Display current line number
  A-< C-u 20 C-n	Go to line number 20
Google
 
Web aruljohn.com