MovingC-f forward charC-b backward charC-p previous lineC-n next lineM-f forward one wordM-b backward one wordC-a beginning of lineC-e end of lineC-v one page upM-v scroll down one pageM-< beginning of textM-> end of text

Space or y replace this occurenceDel or n don't replace. only replace this and exit (replace), replace and pause (resume with Space or y)! replace all following occurences^ back to previous matchRETURN or q quit replace

Search/Replace RegEx
Characters to use in regular expressions:^ beginning of line$ end of line. single char.* group or null of chars\< beginning of a word\> end of a word[] every char inside the backets (for example [a-z] means every small letter)

d mark bookmark for deletionr rename bookmarks save all listed bookmarksf show bookmark the cursor is overm mark bookmarks to be shown in multiple windowv show marked bookmarks (or the one the cursor is over)t toggle listing of the corresponding pathsw " path to this filex delete marked bookmarksDel ?q quit bookmark listM-x bookmark-write write all bookmarks in given fileM-x bookmark-load load bookmark from given file

CodingM C-\ indent region between cursor and markM-m move to first (non-space) char in this lineM-^ attach this line to previousM-; format and indent comment

C, C++ and Java ModesM-a beginning of statementM-e end of statementM C-a beginning of functionM C-e end of functionC-c RETURN Set cursor to beginning of function and mark at the endC-c C-q indent the whole function according to indention styleC-c C-a toggle modus in which after electric signs (like {}:';./*) emacs does the indentionC-c C-d toggle auto hungry mode in which emacs deletes groups of spaces with one del-pressC-c C-u go to beginning of this preprocessor statementC-c C-c comment out marked area

GeneralM-x outline-minor-mode collapses function definitions in a file to a mere {...}M-x show-subtree If you are in one of the collapsed functions, this un-collapses it
In order to achive some of the feats coming up now you have to run etags *.c *.h *.cpp (or what ever ending you source files have) in the source directoryM-. (Thats Meta dot) If you are in a function call, this will take you to it's definitionM-x tags-search ENTER Searches through all you etagedM-, (Meta comma) jumps to the next occurence for tags-searchM-x tags-query-replace yum. This lets you replace some text in all the tagged files

Gnu DebuggerM-x gdb starts gdm in an extra window

Version ControlC-x v d show all registered files in this dirC-x v = show diff between versionsC-x v u remove all changes since last checkinC-x v ~ show certain version in different windowC-x v l print logC-x v i mark file for version control addC-x v h insert version control header into fileC-x v r check out named snapshotC-x v s create named snapshotC-x v a create changelog file in gnu-style