From 72aa4910006b9d2343b748ea15f587ceb8857af5 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Wed, 4 Feb 2026 14:33:05 -0800 Subject: suckless includes --- src/emacs/setup.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 src/emacs/setup.sh (limited to 'src/emacs/setup.sh') diff --git a/src/emacs/setup.sh b/src/emacs/setup.sh new file mode 100755 index 0000000..e7ca491 --- /dev/null +++ b/src/emacs/setup.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +set -e + +EMACSFULL="--with-x-toolkit=gtk3 --disable-build-details --with-cairo \ + --with-harfbuzz --with-libsystemd=no --with-modules \ + --with-tree-sitter" + +EMACSMIN="--without-all \ + --with-x-toolkit=no --without-xwidgets --without-x --without-ns --disable-ns-self-contained \ + --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no \ + --without-internationalization --without-tree-sitter --without-mailutils" + +EMACSALWAYS="--with-gnutls --with-file-notification=yes --with-native-compilation=yes --with-zlib=yes" + + +if [[ "$(read -e -p 'Build minimal emacs? [y/N]> '; echo $REPLY)" == [Yy]* ]]; then + EMACSOPT="${EMACSMIN} ${EMACSALWAYS}" +else + EMACSOPT="${EMACSFULL} ${EMACSALWAYS}" +fi +cd emacs-source +./autogen.sh +./configure --prefix="${HOME}/.local" \ + ${EMACSOPT} \ + CFLAGS='-O2 -pipe' +make +make install -- cgit v1.2.3