-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Emacs Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to Emacs text editor on Linux, covering Arch Linux, CachyOS, and other distributions including installation, basic usage, and configuration.
Arch/CachyOS:
# Install Emacs
sudo pacman -S emacs
# Or GUI version
sudo pacman -S emacs-noxDebian/Ubuntu:
sudo apt install emacsFedora:
sudo dnf install emacsStart Emacs:
# Open file
emacs filename.txt
# Or GUI
emacs
# Terminal version
emacs -nw filename.txtEmacs display:
- Top: Menu bar
- Middle: Text area
- Bottom: Status line (mode line)
Edit text:
- Type: Start typing
- Move cursor: Arrow keys or Ctrl+arrow
- Delete: Backspace or Delete
File commands:
- Ctrl + X, Ctrl + S: Save
- Ctrl + X, Ctrl + W: Save as
- Ctrl + X, Ctrl + F: Open file
- Ctrl + X, Ctrl + C: Exit
Move around:
- Ctrl + F: Forward character
- Ctrl + B: Backward character
- Ctrl + N: Next line
- Ctrl + P: Previous line
- Ctrl + A: Beginning of line
- Ctrl + E: End of line
Edit commands:
- Ctrl + D: Delete character
- Ctrl + K: Kill line
- Ctrl + Y: Yank (paste)
- Ctrl + Space: Mark text
Edit config:
# Edit init file
vim ~/.emacs
# Or
vim ~/.emacs.d/init.elConfiguration:
;; Enable line numbers
(global-linum-mode t)
;; Enable syntax highlighting
(global-font-lock-mode t)
;; Set tab size
(setq-default tab-width 4)Check installation:
# Check Emacs
which emacs
emacs --version
# Install if missing
sudo pacman -S emacsThis guide covered Emacs installation, basic usage, and configuration for Arch Linux, CachyOS, and other distributions.
- Text Editors - Text editors
- Vim Guide - Vim editor
-
Emacs Documentation:
man emacs
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.