emacs Getting started with emacs Installation or Setup


Detailed instructions on getting emacs set up or installed.

Official instructions are available on the GNU Emacs website.

Debian systems

On systems with the Debian package manager (such as Debian, Ubuntu, and Mint) Emacs can be installed via the simple command:

sudo apt-get install emacs

For a bleeding-edge release one can use the following ppa:

sudo apt-add-repository ppa:ubuntu-elisp/ppa
sudo apt-get install emacs-snapshot

Build for source

If your debian based distro does not have the version of emacs you want you can build it from scratch.

sudo apt-get build-dep emacs24 -y

cd /tmp/

wget http://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.93.tar.xz
tar -xvf emacs-25.0.93.tar.xz

cd emacs-25.0.93
sudo make install

rm -rf /tmp/emacs-25.0.93*

Redhat systems

On systems with the Redhat package manager (such as RHEL, CentOS, and Fedora Core) Emacs can be installed via the simple command:

sudo yum install emacs

Arch Linux

Emacs can be installed via the simple command:

sudo pacman -Syu emacs

Gentoo and Funtoo

On systems running Portage, Emacs can be installed via the simple command:

sudo emerge emacs

GSRC (GNU Source Release Collection)

Works on any GNU/Linux system for getting the latest version of emacs without using the system package manager (which may be out of date) or downloading the archive or binary. To install gsrc see it's documentation. Then:

cd gsrc
make -C gnu/emacs install
# add the binaries to your PATH
source ./setup.sh

Darwin systems


brew install emacs --with-cocoa # basic install
# additional flags of interest can be viewed by calling `brew info emacs`
brew linkapps emacs # to put a symlink in your Applications directory


sudo port install emacs


sudo pkgin -y install emacs-24.5

App Bundle

Precompiled app bundles for the latest stable and development versions can be downloaded at https://emacsformacosx.com.


Chocolatey package manager

Emacs can be installed with

choco install emacs

Scoop package manager

Can be installed from extras bucket

scoop bucket add extras
scoop install emacs

Official Binary Installers

(Note that official binaries do not come with some libraries - e.g., libraries for image formats)

Other Binary Installers