EMACS FUNDAMENTAL CHEAT SHEET Exit CTRL/x CTRL/c Exit - with option to save things Help CTRL/h help (and follow instructions) CTRL/h?T enter Tutorial mode UNDO CTRL/X u - Undo previous insert/delete/etc CTRL-_ - simpler to type In emacs documentation M-x means x -- tap the ESC or ALT Key (or hold down a key marked meta) C-x means CTRL/x -- hold CTRL down and tap x Normal characters are INSERTED IN TEXT unless the CTRL key is held down or the key is tapped first. More Help C-h k key-sequence Explains what key-sequence means C-h f function Describe a function C-h a clue List commands apropos to clue. Get rid of other windows C-x 1 One window (i.e., kill all other windows). Move cursor C-b - back one character M-b - back one word C-f - forward one character M-f - forward one word C-p - previous line C-n - next line C-a - start of line M-a - start of sentence word C-e - end of line M-e - end of sentence word M-< - start of file M-> - end of file Delete things delete the character just before the cursor C-d delete the next character after the cursor Kill (= CUT) M- kill the word immediately before the cursor M-d kill the next word after the cursor C-k kill from the cursor position to end of line M-k kill to the end of the current sentence Yank back KILLED text (CUT text) C-y to get the most recent kill M-Y replaces that yanked text with the previous kill Typing M-y again and again brings in earlier and earlier kills. Searching C-s xyz...ESC Forward for x,y,z,... C-s xyz...ESC Backward for x,y,z... Move screen C-v Move forward one screenful M-v Move backward one screenful C-L Clear screen and redisplay everything Repeating comands C-u n X repeats X n times (on some terminals can do M-digit) Cancel long command and ESC commands C-g Saving and opening files C-x C-f Find file - Emacs asks you to type the file name. C-x C-s Save the file Buffers C-x C-b List buffers C-x s Save some buffers Extended long command C-x Char Character eXtend. Followed by one character. M-x command_abrevn Named command eXtend. Followed by a long name, spaces and arguments. Escapes C-z Either invoke subshell or put Emacs into background(C Shell) M-x top-level Escape from recursive edits(?) Modes M-x fundamental-mode M-x text-mode English M-x auto-fill-mode Word wrap input(minor mode - toggles on/off)