Introduction to Emacs

The Emacs package contains an extensible, customizable, self-documenting real-time display editor.

This package is known to build and work properly using an LFS-11.0 platform.

Package Information

Emacs Dependencies



X Window System, alsa-lib-, Cairo-1.17.4, dbus-1.12.20, GConf-3.2.6, gobject-introspection-1.68.0, gsettings-desktop-schemas-40.0, GPM-1.20.7, GTK+-2.24.33 or GTK+-3.24.30, ImageMagick-7.1.0-4, Little CMS-2.12, libjpeg-turbo-2.1.1, libpng-1.6.37, librsvg-2.50.7, libxml2-2.9.12, MIT Kerberos V5-1.19.2, Valgrind-3.17.0, intlfonts, libungif, libotf, and m17n-lib - to correctly display such complex scripts as Indic and Khmer, and also for scripts that require Arabic shaping support (Arabic and Farsi), mailutils, and libXaw3d

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/emacs

Installation of Emacs

First, work around a portability bug in glibc 2.34, which no longer defines SIGSTKSZ.

sed -e '/SIGSTKSZ/ s|^.*$|static max_align_t sigsegv_stack[\
   (64 * 1024 + sizeof (max_align_t) - 1) / sizeof (max_align_t)];|' \
    -i src/sysdep.c

Install Emacs by running the following commands:

./configure --prefix=/usr &&

This package does not come with a test suite. If make succeeds, you can test the result by running src/emacs -Q, which is the program that will be installed, with its auxiliary files. This should start and display the application opening screen.

Now, as the root user:

make install &&
chown -v -R root:root /usr/share/emacs/27.2 &&
rm -vf /usr/lib/systemd/user/emacs.service


This package installs icon files into the /usr/share/icons/hicolor hierarchy and you can improve system performance and memory usage by updating /usr/share/icons/hicolor/index.theme. To perform the update you must have GTK+-2.24.33 or GTK+-3.24.30 installed and issue the following command as the root user:

gtk-update-icon-cache -qtf /usr/share/icons/hicolor

Command Explanations

--with-imagemagick: Use this if you have installed ImageMagick-7.1.0-4 and wish to link against it.

--with-gif=no: Use this if you have not installed giflib-5.2.1 or libungif.

--with-tiff=no: Use this if you have not installed libtiff-4.3.0.

--with-gnutls=no: Use this if you have not installed GnuTLS-3.7.2.

--without-harfbuzz: Use this if you have not installed HarfBuzz-2.9.0.

--with-json=no: Use this if you have not installed jansson-2.13.1.


Installed Programs: ctags, ebrowse, emacs (symlink), emacs-27.2, emacsclient, and etags
Installed Libraries: None
Installed Directories: /usr/libexec/emacs and /usr/share/emacs

Short Descriptions


creates cross-reference tagfile database files for source code


permits browsing of C++ class hierarchies from within emacs


is an editor


attaches an emacs session to an already running emacsserver instance


is another program to generate source code cross-reference tagfiles

Last updated on