LAB HELP Emacs Editor Commands

Emacs Editor Common Commands

Note when in Emacs:
   C   -   means HOLD control key
   M   -   means HOLD ALT key

C-xC-c Exit from editor
C-xC-s Save (output) file
C-xC-f Find file (opens it into emacs window)
C-xC-w Write to a new file (similar to SAVE AS )
C-v Page Down 1 screen
M-v Page UP 1 screen
C-e Move cursor to END of LINE
C-a Move cursor to BEGINNING of LINE
C-d Delete character AT cursor
M- > Move to END OF WHOLE TEXT
M- < Move to BEGINNING of WHole TEXT
C-k Delete to end of current line (Cut)
C-y Paste (yank from buffer) last item Cut
C-spacebar Set mark for a region
C-w Kill region from mark to cursor
M-w Copy region from mark to cursor
C-g Kill current command, or STOP when stuck
C-x u Undo previous command (allows several in a row)
C-s Search for string in file (forward search)
C-r Search for string in file (reverse search)
C-h Get help on emacs commands
M-x insert-file Inserts a File into current location
M-x compile Runs compile command from within emacs
M-x shell Runs a unix shell (command line) within emacs buffer
M-x help-with-tutorial Runs the emacs tutorial for learning editor
M-x replace-string Replaces old string with new string throughout
C-x k Kill current buffer
C-xC-b List all buffers currently open