------------------------- Emacs Cheat Sheet Author: Alejandro Cabrera ------------------------- M- = Meta = Alt C- = Ctrl -------- Movement -------- C-b backward-character C-f foward-character M-b backward-word M-f forward-word C-a start-of-line C-e end-of-line M-a start-of-sentence M-e end-of-sentence C-p previous-line C-n next-line C-v next-page PgDn next-page M-v previous-page PgUp previous-page M-< beginning-of-file M-> end-of-file C-l center-display --------- File Ops. --------- C-x C-f load file into new buffer C-x C-v load file into current buffer C-x C-s Save current buffer C-x s Save all modified buffers C-x C-c Save & quit C-h t Load emacs tutorial --------- Searching --------- C-s Search incrementally as you type text C-s Search using current text to next entry ----------------------------------- Deletion, Copying, Yanking, Marking ----------------------------------- C-space Begin mark-mode M-w Copy region C-d Delete character C-k Delete line past cursor, don't take newline C-k C-k Delete line past cursor, take newline C-w Delete region M-d Delete word C-y Yank text from kill buffer ----------- Indentation ----------- Tab Indent line C-j Newline and indent C-M-\ Indent region -------------- Buffer Control -------------- C-x C-b List all buffers C-x b Switch to another buffer C-x k Kill cuurent buffer C-x 0 Kill current window C-x 1 Kill other windows C-x 2 Split window horizontally C-x 3 Split window vertically C-x o PLace cursor on other window ----- Misc. ----- M-x man Load man-mode M-x hs-minor-mode Enable hide-show mode C-x @ C-h Hide current block C-x @ C-s Show current block C-x @ C-M-h Hide all blocks C-x @ C-M-s Show all blocks