Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, June 6, 2026. Learn more…

Leanpub Header

Skip to main content

Emacs for Life

Build It Yourself, Own It Forever

This book is 100% completeLast updated on 2026-05-28

You tried Emacs. You quit. You're back. This time, you'll finish — with a keyboard-driven setup you built yourself, understand completely, and will use for life.

Minimum price

$20.00

$30.00

You pay

Author earns

$
PDF
EPUB
WEB
About

About

About the Book

You know the story. You tried Emacs. You went through the tutorial, used it for a week, hit a wall, and went back to your comfortable editor. Maybe you did this twice. Maybe five times, like the author of this book.

And yet here you are again, thinking about Emacs. That is not a coincidence.

Emacs for Life is written by someone who understands that frustration from the inside. Not a theoretical guide — a practical, honest walkthrough from a working software engineer who kept returning to Emacs until it finally stuck, and has used it daily ever since.

Think of it like IKEA furniture. The boxed version arrives, you assemble it yourself, and because you put it together piece by piece, you understand every joint and you care for it differently than something pre-built. This book takes you through that assembly. Vanilla Emacs first. Your configuration, your choices, only what you actually need — nothing more.

In seven chapters and seven hands-on workshops, you will build:

  • A clean, fast Emacs setup configured exactly to your taste
  • A development environment with completions, real-time error checking, jump-to-definition, and full Git integration via Magit
  • An org-mode system for tasks, notes, planning, and meeting summaries
  • A working AI integration — Claude, GPT-4, or a private local model via Ollama — without ever leaving your editor

Emacs costs nothing. No subscription, no paid upgrade, no vendor lock-in. It runs on every OS you will ever use, with the same configuration, the same keystrokes, the same behavior. Every hour you invest in it is yours to keep.

The goal of this book is simple: by the last page, you will finish your work day inside Emacs. Not just editing code — thinking, planning, communicating, and letting AI assist you, all from one keyboard-driven environment that you built and understand completely.

You have tried the easy path. This is the better one.

Author

About the Author

Joel Bryan Juliano

Joel has built his own Emacs setup from ground-up. The key to an Emacs setup is to fit you like a glove. It should become you. This book will help you to create your truly own Emacs setup for your life.

Contents

Table of Contents

Introduction

Getting Started

  1. Installation
  2. Running Emacs
  3. Exercises: Getting Started

Emacs Basics

  1. Understanding Emacs Key Notation
  2. Cursor Navigation
  3. Copy, Cut, and Paste
  4. Search and Replace
  5. Exercises: Movement & Editing
  6. Chapter Summary

Emacs Basics: Files, Buffers & Windows

  1. Opening and Saving Files
  2. Buffers
  3. Dired: The File Manager Inside Emacs
  4. Splitting the Screen
  5. Undoing Mistakes
  6. Exiting Emacs
  7. Exercises: Files, Buffers & Windows
  8. Chapter Summary

Your First Configuration

  1. Where Configuration Lives
  2. Emacs Lisp: The Language of Configuration
  3. A Solid Starting Configuration
  4. Customizing the Look
  5. Variables and Settings
  6. Keybindings
  7. Hooks: Running Code at the Right Moment
  8. Evaluating Configuration Changes
  9. The Customize Interface
  10. Growing Beyond a Single File
  11. Exercises: Your First Configuration
  12. Chapter Summary

Package Management

  1. Package Repositories
  2. Installing Packages Manually
  3. use-package: A Better Way to Manage Packages
  4. Essential Packages to Install
  5. Your Packages Section
  6. Exercises: Package Management
  7. Chapter Summary

Org-Mode: Your Second Brain

  1. Your First Org File
  2. Headings and Structure
  3. Folding
  4. Todo Items
  5. Priorities
  6. Checkboxes
  7. Scheduling and Deadlines
  8. The Agenda View
  9. Tags
  10. Notes and Capture
  11. Tables
  12. Exporting
  13. Exercises: Org-Mode
  14. Chapter Summary
  15. Where to Go from Here

Daily Emacs

  1. TRAMP: Remote Files, Local Editing
  2. Emacs Server: Start Once, Connect Instantly
  3. Spell Checking with Flyspell
  4. A Terminal Inside Emacs
  5. Exercises: Daily Emacs
  6. Chapter Summary

Coding in Emacs

  1. Language Support
  2. LSP: The Language Server Protocol
  3. Projectile: Project-Aware Navigation
  4. Flycheck: Real-Time Error Checking
  5. magit: Git Mastery
  6. Snippets: Type Less, Write More
  7. A Complete Developer init.el
  8. Exercises: Coding in Emacs
  9. Chapter Summary

AI in Emacs

  1. gptel: A Universal LLM Client
  2. Local AI with Ollama
  3. Inline Code Completion: Copilot and Codeium
  4. AI-Assisted Refactoring Workflow
  5. AI Inside Org-Mode
  6. Sensitive Data and Local Models
  7. Your AI Configuration Block
  8. Exercises: AI in Emacs
  9. Chapter Summary

Appendix: Keyboard Shortcuts Reference

  1. Key Notation
  2. Navigation
  3. Editing
  4. Search and Replace
  5. Files and Buffers
  6. Dired (File Manager)
  7. Windows and Frames
  8. Help and Discovery
  9. Configuration
  10. Packages (Ivy / Counsel)
  11. Org-Mode
  12. Magit
  13. LSP and Development
  14. Projectile
  15. AI (gptel)
  16. Building Emacs from Source

Glossary

About the Author

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

Other books by this author

Other books by this author

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub