Emacs Cheatsheet
Unique Features
- Extensible, customizable text editor
- Supports many programming languages and markup formats
- Includes a built-in Lisp interpreter for scripting and customization
- Can be used as a complete development environment
- Includes a wide range of built-in functionality and packages
Buffers
C-x b buffer_name RET
Windows
C-x 2 // Split window vertically
C-x 3 // Split window horizontally
C-x 0 // Delete current window
C-x 1 // Delete all windows except current
Navigation
C-v // Scroll forward one screen
M-v // Scroll backward one screen
C-l // Center current line in window
C-a // Move to beginning of line
C-e // Move to end of line
Editing
C-k // Kill (cut) text from cursor to end of line
C-y // Yank (paste) previously killed text
C-w // Kill region (selected text)
M-w // Copy region (selected text)
Search and Replace
C-s // Search forward
C-r // Search backward
M-% // Query replace
Macros
C-x ( // Start recording macro
C-x ) // Stop recording macro
C-x e // Execute macro
Packages
M-x package-list-packages // List available packages
M-x package-install package_name // Install package
Resources