Skip to content

Instantly share code, notes, and snippets.

@xuhdev
Last active June 9, 2024 00:28
Show Gist options
  • Save xuhdev/378a1f9e35fe554fdf30e9c1943846e5 to your computer and use it in GitHub Desktop.
Save xuhdev/378a1f9e35fe554fdf30e9c1943846e5 to your computer and use it in GitHub Desktop.
My Emacs configure (for build)
#!/bin/sh
# Configure Emacs build options.
./autogen.sh
mkdir build && cd build
# Replace `--with-pgtk` with `--with-cairo` if building for X11.
CFLAGS='-march=native -O3' ../configure \
--with-modules \
--with-xwidgets \
--prefix="$HOME/.local/opt/emacs/" \
--program-transform-name='s/^ctags$/ctags.emacs/' \
--with-mailutils \
--enable-acl \
--with-imagemagick \
--with-native-compilation=aot \
--with-pgtk \
--with-json \
--with-tree-sitter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment