From 3376b6420d3b6cc965890e46e7bbd06fbc9fd037 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Sun, 14 Jun 2026 08:59:25 -0700 Subject: layout reorg --- editors/emacs/setup.sh | 28 ++++++++++++++++++++++++++++ editors/vi/setup.sh | 10 ++++++++++ editors/vi/vi | 1 + 3 files changed, 39 insertions(+) create mode 100755 editors/emacs/setup.sh create mode 100755 editors/vi/setup.sh create mode 160000 editors/vi/vi (limited to 'editors') diff --git a/editors/emacs/setup.sh b/editors/emacs/setup.sh new file mode 100755 index 0000000..e7ca491 --- /dev/null +++ b/editors/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 diff --git a/editors/vi/setup.sh b/editors/vi/setup.sh new file mode 100755 index 0000000..2752651 --- /dev/null +++ b/editors/vi/setup.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +export PREFIX=${HOME}/.local + +cd vi +make +make install + diff --git a/editors/vi/vi b/editors/vi/vi new file mode 160000 index 0000000..9855bed --- /dev/null +++ b/editors/vi/vi @@ -0,0 +1 @@ +Subproject commit 9855bed0869ace4665e2776ec4d489847a0781b4 -- cgit v1.2.3