C = Control
M = Meta = Alt|Esc
Basics                                      Basic movement
C-x C-f "find" file i.e. open/create a file in C-f forward char
buffer                                         C-b backward char
C-x C-s save the file                          C-p previous line
C-x C-w write the text to an alternate         C-n next line
name                                           M-f forward one word
C-x C-v find alternate file                    M-b backward one word
C-x i insert file at cursor position           C-a beginning of line
C-x b create/switch buffers                    C-e end of line
C-x C-b show buffer list                       C-v one page up
C-x k kill buffer                              M-v scroll down one page
C-z suspend emacs                              M-< beginning of text
C-X C-c close down emacs                       M-> end of text
Editing                                 Important
M-n repeat the following command n      C-g quit the running/entered command
times                                   C-x u undo previous action
C-u repeat the following command 4      M-x revert-buffer RETURN (insert like
times                                   this) undo all changes since last save
C-u n repeat n times                    M-x recover-file RETURN Recover text
C-d delete a char                       from an autosave-file
M-d delete word                         M-x recover-session RETURN if you
M-Del delete word backwards             edited several files
C-k kill line                           Online-Help
C-Space Set beginning mark (for region  C-h c which command does this
marking for example)                    keystroke invoke
C-W "kill" (delete) the marked region   C-h k which command does this
region                                  keystroke invoke and what does it do?
M-W copy the marked region              C-h l what were my last 100 typed keys
C-y "yank" (paste) the copied/killed    C-h w what key-combo does this
region/line                             command have?
M-y yank earlier text (cycle through kill
                                        C-h f what does this function do
buffer)                                 C-h v what's this variable and what is it's
C-x C-x exchange cursor and mark        value
                                        C-h b show all keycommands for this
C-t transpose two chars                 buffer
M-t transpose two words                 C-h t start the emacs tutorial
C-x C-t transpose lines                 C-h i start the info reader
M-u make letters uppercase in word from C-h C-k start up info reader and go to a
cursor position to end                  certain key-combo point
M-c simply make first letter in word    C-h F show the emacs FAQ
uppercase                               C-h p show infos about the Elisp package
M-l opposite to M-u                     on this machine
                                         Search/Replace with regular
Search/Replace                           expressions
                                         Characters to use in regular
C-s Search forward                       expressions:
C-r search backward
C-g return to where search started (if   ^ beginning of line
you are still in search mode)            $ end of line
M-% query replace                        . single char
Space or y replace this occurence        .* group or null of chars
Del or n don't replace                   \< beginning of a word
. only replace this and exit (replace)   \> end of a word
, replace and pause (resume with Space   [] every char inside the backets (for
or y)                                    example [a-z] means every small letter)
! replace all following occurences       M C-s RETURN search for regular
^ back to previous match                 expression forward
RETURN or q quit replace                 M C-r RETURN search for regular
                                         expression backward
Window-Commands                          M C-s incremental search
                                         C-s repeat incremental search
C-x 2 split window vertically            M C-r incremental search backwards
C-x o change to other window             C-r repeat backwards
C-x 0 delete window                      M-x query-replace-regexp search and
C-x 1 close all windows except the one   replace
the cursors in
C-x ^ enlarge window
M-x shrink-window command says it ;-)
M C-v scroll other window
C-x 4 f find file in other window
C-x 4 o change to other window
C-x 4 0 kill buffer and window
C-x 5 2 make new frame
C-x 5 f find file in other frame
C-x 5 o change to other frame
C-x 5 0 close this frame
                                            Bookmark commands
Programming                                 C-x r m set a bookmark at current cursor
M C-\ indent region between cursor and      pos
mark                                        C-x r b jump to bookmark
M-m move to first (non-space) char in       M-x bookmark-rename says it
this line                                   M-x bookmark-delete "
M-^ attach this line to previous            M-x bookmark-save "
M-; formatize and indent comment            C-x r l list bookmarks
C, C++ and Java Modes                       d mark bookmark for deletion
M-a beginning of statement                  r rename bookmark
M-e end of statement                        s save all listed bookmarks
M C-a beginning of function                 f show bookmark the cursor is over
M C-e end of function                       m mark bookmarks to be shown in
C-c RETURN Set cursor to beginning of       multiple window
function and mark at the end                v show marked bookmarks (or the one
C-c C-q indent the whole function           the cursor is over)
according to indention style                t toggle listing of the corresponding
C-c C-a toggle modus in which after         paths
electric signs (like {}:';./*) emacs does   w " path to this file
the indention                               x delete marked bookmarks
C-c C-d toggle auto hungry mode in          Del ?
which emacs deletes groups of spaces        q quit bookmark list
with one del-press                          M-x bookmark-write write all bookmarks
C-c C-u go to beginning of this             in given file
preprocessor statement                      M-x bookmark-load load bookmark from
C-c C-c comment out marked area             given file