Resource for integrating Emacs built from source into Debian
Emacs Lisp Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README README: add workaround for Debian bug #840793 Oct 15, 2016
emacs-snapshot_1.0_all.deb Initial commit. May 26, 2011
restore-emacs Fix latest variable for Emacs 25 Apr 26, 2016


           Integrating Emacs built from source into Debian

               Maintainer: Reuben Thomas <>
           Author: Michael Olson <>

This git repository contains some useful resources for integrating
Emacs built from source into Debian or derivatives like Ubuntu.

There are two parts to this kit:

1. You should run debian-init.el early in your Emacs startup process
   (I load it immediately after setting up my load-path). It runs
   Debian’s Emacs init files.

2. restore-emacs should be run every time you update your Emacs
   installed from source (e.g. with git pull), from the top-level
   source directory. It “makes install” in the current directory,
   fixes some symlinks and installs emacs-snapshot_1.0_all.deb, a
   package which provides Emacs to satisfy the dependencies of other

Also, see

In emacsen-common 2.0.8 at least (possibly earlier), and until the bug is
fixed, /usr/lib/emacsen-common/packages/install/emacsen-common must be
patched to make installation work: lines 25-26, which read:

(cd /usr/share/${FLAVOR}/site-lisp
  ln -s ../../emacs/site-lisp/debian-startup.el .)

   should be replaced with:

ln -s /usr/share/emacs/site-lisp/debian-startup.el /usr/share/${FLAVOR}/site-lisp/