💾 Archived View for gem.sdf.org › s.kaplan › cheatsheets › applications › emacs.md captured on 2023-09-28 at 16:14:56.
⬅️ Previous capture (2023-09-08)
-=-=-=-=-=-=-
# 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 - [GNU Emacs Manual](https://www.gnu.org/software/emacs/manual/) - [EmacsWiki](https://www.emacswiki.org/) - [Mastering Emacs](https://www.masteringemacs.org/) (blog) - [Emacs Rocks!](http://emacsrocks.com/) (video tutorials)