Emacs is one of the most powerful and customizable text editors ever created. It’s beloved by programmers, writers, and power users alike for its endless extensibility — you can use it for coding, note-taking, project management, and even running a terminal or email client inside one window.
If you’re a Windows 11 user and want to install and configure Emacs on your system, this guide will walk you through every step, from downloading it to running your first Emacs session.
What Is GNU Emacs?
GNU Emacs, developed by Richard Stallman, is a free, open-source text editor built on the concept of extensibility. It’s written in Lisp and allows you to modify or extend almost any behavior — from key bindings and UI themes to advanced programming features.
With Emacs, you can:
- Edit and manage code in dozens of languages
- Run terminals, shells, and compilation processes inside the editor
- Write scripts to automate repetitive tasks
- Customize appearance with themes and packages via MELPA
Unlike lightweight editors like Notepad++ or VS Code, Emacs is a full environment — many developers even call it “an operating system inside your operating system.”
Step 1: Download Emacs for Windows 11
The easiest way to get Emacs on Windows 11 is by downloading the official pre-compiled binary.
- Open your browser and go to the official GNU Emacs site: https://www.gnu.org/software/emacs/download.html
- Scroll down to Windows builds and click the link to the GNU FTP mirrors.
- Look for the latest release folder (for example, emacs-29.3).
- Download the file named something like:
emacs-29.3-installer.exe
Tip: Always choose the 64-bit version unless your system explicitly requires 32-bit compatibility.
Step 2: Install Emacs Using the Installer
Once the installer file is downloaded:
- Double-click emacs-29.x-installer.exe.
- When prompted by Windows SmartScreen, click Run anyway (if you trust the source).
- Follow the installation wizard:
- Choose an installation directory (default:
C:\Program Files\Emacs). - Optionally, check Add Emacs to PATH — this lets you open it from Command Prompt.
- Click Next → Install.
- Choose an installation directory (default:
- Wait for the installation to complete, then click Finish.
That’s it! You’ve successfully installed Emacs on your Windows 11 machine.
Step 3: Launch Emacs
After installation, you can open Emacs in multiple ways:
- Search: Press Windows + S, type Emacs, and select GNU Emacs.
- Command Prompt: Type
emacsand hit Enter (if you added Emacs to PATH). - Shortcut: Navigate to
C:\Program Files\Emacs\bin\runemacs.exeand double-click.
When it opens, you’ll see the classic GNU Emacs welcome screen with helpful links and shortcuts.
Step 4: Configure Emacs (Optional but Recommended)
Emacs is extremely powerful out of the box, but configuring it will make your experience smoother.Create a Configuration File
- In your user folder, create a file named:
.emacsor use:C:\Users\<YourUsername>\AppData\Roaming\.emacs.d\init.el - Open this file in Emacs and add a few sample configurations:
;; Disable the startup message (setq inhibit-startup-message t) ;; Enable line numbers (global-display-line-numbers-mode t) ;; Use spaces instead of tabs (setq-default indent-tabs-mode nil) ;; Set a default font size (set-face-attribute 'default nil :height 110) - Save the file (press Ctrl + x, then Ctrl + s) and restart Emacs to apply changes.
Pro Tip: Use MELPA (the Emacs package repository) to install themes, syntax highlighters, and productivity tools.
Step 5: Add MELPA Package Repository
To install extra packages like syntax highlighting or language support, enable MELPA.
- Open your config file (
init.el). - Add the following code:
(require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) (package-initialize) - Save and restart Emacs.
Now you can install packages like this:
- Press Alt + x, type
package-list-packages, and press Enter. - Search for and install your desired package (e.g.,
use-package,doom-themes, etc.).
Step 6: Launch Emacs from Command Line (Optional)
If you didn’t add Emacs to PATH during installation, you can do it manually:
- Press Windows + R, type:
sysdm.cpland hit Enter. - Go to Advanced → Environment Variables.
- Under System Variables, find and edit
Path. - Click New, then add:
C:\Program Files\Emacs\bin - Click OK and restart Command Prompt.
Now you can open Emacs by simply typing emacs anywhere in CMD or PowerShell.
Step 7: Update Emacs (Optional)
To stay up-to-date with new features and bug fixes:
- Visit the same GNU FTP site.
- Download the latest installer version.
- Run it over your existing installation — your configuration files will remain safe.
Wrapping Up
Installing Emacs on Windows 11 is easy and gives you access to one of the most flexible and powerful text editors ever made.
Once installed, you can start customizing it, adding packages, and shaping it into your perfect development environment.
Whether you’re coding, writing, or managing projects, Emacs offers an all-in-one workspace that grows with you. So go ahead — open Emacs, write some code, and see why developers around the world swear by it!