There is a famous joke in the Linux community: “Emacs is a great operating system, lacking only a decent editor.”
While said in jest, it captures the essence of GNU Emacs perfectly. Emacs is not just a text editor—it is a Lisp interpreter that happens to have text editing capabilities. Inside Emacs, you can manage your files, read your email, play games, use the terminal, and organize your entire life.
In this guide, we will explore terminal Emacs, demystify its unique keyboard “chords,” and introduce you to its killer feature: Org Mode.
The Emacs Metaphor: Keyboard Chords
Unlike Vim, which uses “modes” (Insert mode, Normal mode), Emacs is always in insert mode. To execute commands, Emacs relies on Keyboard Chords—holding down multiple keys simultaneously.
Cstands for the Ctrl key.Mstands for the Meta key (which is the Alt key on modern keyboards).
So, if you see the command C-x C-s, it means:
- Hold Ctrl and press X.
- Keep holding Ctrl and press S.
(Pro Tip: Because Emacs relies heavily on the Ctrl key, many users remap their Caps Lock key to act as a second Ctrl key to avoid “Emacs Pinky” strain!)
Installation
Installing the terminal version of Emacs is simple:
Debian/Ubuntu:
sudo apt install emacs-nox
Fedora:
sudo dnf install emacs-nox
Note: The -nox suffix means “No X window system”, ensuring you get the pure, lightweight terminal version without unnecessary GUI dependencies.
Launch it by typing emacs -nw in your terminal.
Basic Navigation and Editing
Because you are always typing, you must use chords to navigate:
- C-f: Move forward one character.
- C-b: Move backward one character.
- C-n: Move to the next line (down).
- C-p: Move to the previous line (up).
- C-a: Jump to the beginning of the line.
- C-e: Jump to the end of the line.
Saving and Quitting
- C-x C-s: Save the current file.
- C-x C-c: Exit Emacs entirely.
The Help System (Your Lifeline)
Emacs has arguably the best built-in documentation of any software in existence. If you ever get stuck, press C-h (Ctrl + H) to access the Help system.
- C-h t: Opens the incredibly useful built-in interactive tutorial. Do this first!
- C-h k: Describes what a specific key combination does.
- C-h f: Describes a specific function.
The Kill Ring (Clipboard on Steroids)
In Emacs, cutting text is called “Killing”, and pasting is called “Yanking”.
Unlike a standard clipboard that only remembers the very last thing you copied, Emacs remembers a massive history of everything you have killed inside a structure called the Kill Ring.
- C-k: Kill (cut) from the cursor to the end of the line.
- C-y: Yank (paste) the most recently killed text.
- M-y: After yanking, press
Alt + Yrepeatedly to cycle backward through your clipboard history!
Org Mode: The Killer App
Many developers use Vim for editing code, but keep Emacs installed purely for Org Mode.
Org Mode is an unparalleled plain-text system for taking notes, maintaining massive TODO lists, scheduling deadlines, and planning projects. Because it is pure text, it is future-proof and incredibly fast.
* Shopping List
** TODO Buy groceries
SCHEDULED: <2026-06-15 Sat>
- [ ] Milk
- [ ] Eggs
- [X] Bread
You can seamlessly cycle through TODO states, clock your time spent on tasks, and export your Org documents beautifully to PDF or HTML.
Don’t Want to Give Up Vim? (Evil Mode)
If you love the customizability of Emacs but prefer the modal editing speed of Vim, you are in luck.
Evil Mode is an Emacs package that perfectly emulates Vim’s keybindings (hjkl, ciw, dd). By installing Evil Mode, or by using a pre-configured distribution like Doom Emacs or Spacemacs, you truly get the best of both worlds.
Happy Emacs-ing!
Discussion
Loading comments...